Page 1 of 1

Points collection problem in ver 6.4?

Posted: Wed Oct 03, 2007 12:28 pm
by ErikS1
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

Posted: Thu Oct 04, 2007 1:29 am
by John Finlay
ErikS1,

You are right - It looks like a bug in the Points Object Add method.

Points Collection

Posted: Tue Oct 16, 2007 2:46 am
by ENSIGN
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

Posted: Tue Oct 16, 2007 6:52 pm
by John Finlay
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.

evaluatelispexpressin

Posted: Fri Oct 19, 2007 2:05 am
by ENSIGN
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.

Posted: Mon Oct 22, 2007 6:17 pm
by John Finlay
All,

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