Points collection problem in ver 6.4?

The VBA forum deals with IntelliCAD 2000 VBA (Visual Basic for Applications) issues.

Moderator: CMS Inc

Post Reply
ErikS1
Contributor
Posts: 16
Joined: Sat Feb 12, 2005 12:01 am

Points collection problem in ver 6.4?

Post by ErikS1 » Wed Oct 03, 2007 12:28 pm

The following works ok in 6.2, but gives "Run Time Error 5, Invalid procedure call or argument" in 6.4 at the ElemPoints.Add command. Any thoughts?

Thanks,
Erik

-----------------------------------

Sub testPoints()

Dim ElemPoints As IntelliCAD.Points
Set ElemPoints = New IntelliCAD.Points

ElemPoints.RemoveAll
ElemPoints.Add 1, 2, 3


End Sub
John Finlay

Post by John Finlay » Thu Oct 04, 2007 1:29 am

ErikS1,

You are right - It looks like a bug in the Points Object Add method.
ENSIGN
Valued Contributor
Posts: 26
Joined: Mon Apr 05, 2004 11:01 pm
Location: ENGLAND

Points Collection

Post by ENSIGN » Tue Oct 16, 2007 2:46 am

HI, I am also having this problem as i use a points collection for drawing a hatch pattern . Is there any other way of doing a hatch pattern without using the points collection
John Finlay

Post by John Finlay » Tue Oct 16, 2007 6:52 pm

ENSIGN,

The points objects are a required argument for the ApplyHatch method.

I tried a collection of points to no avail.

You could try the Function EvaluateLispExpression and use these with the new events "BeginLisp" and "EndLisp" as a work-around until the points class is fixed.
ENSIGN
Valued Contributor
Posts: 26
Joined: Mon Apr 05, 2004 11:01 pm
Location: ENGLAND

evaluatelispexpressin

Post by ENSIGN » Fri Oct 19, 2007 2:05 am

thanks john,

unfortunately i dont know lisp programming, would it be possible for you to post some example coding on how to place a hatch pattern using the EvaluateLispExpression routine.
John Finlay

Post by John Finlay » Mon Oct 22, 2007 6:17 pm

All,

CMS are working on a patch to fix this problem - should be available is a few days.
Post Reply