Page 1 of 1

Type Mismatch in Getpoint

Posted: Wed Apr 07, 2004 1:36 am
by ENSIGN
Hi,

I am trying to use the following instruction in VBA ;-

Set P1 = intellicad.activedocument.utility.getpoint("Select Centre Start Point")

This generates a type mismatch error as the function appears to want a start point in the parameters to draw a trace line from. I dont want a trace line and the online help shows examples of getpoint being used without a point being specified.

Posted: Wed Apr 07, 2004 12:13 pm
by John Finlay
ENSIGN,

Set P1 = intellicad.activedocument.utility.getpoint(,"Select Centre Start Point")

You need a comma prior to "Select Centre.......

The Point is an optional variable that when supplied provides a trace line and if no Point is provided then no trace. You must separate each variable with a comma.



------------------
Regards
John Finlay