(setq plpoints (List->VariantArray plist));You have now the points ready to
pass to the vla-function
(setq obj (vla-AddLightWeightPolyline
; the line above is the MSPACE or PSPACE collection (object pointer)
plpoints; list of vertices
Then you can use vla-Put-..... to set any PROPERTY of the object (look for
the sintaxis under PROPERTIES of ActiveX and VBA Reference) ,
(vla-Put-Closed obj :vlax-True)
If you change any property do not forget to update the object
and then to release the object and finish , do
Hope this helps you
escribió en el mensaje news:firstname.lastname@example.org...
While doing the Tutorial in AutoCAD I ran across the following error:
"error: ActiveX Server returned the error: unknown name:
I have loaded the ActiveX components (I think) with (vl-load-com). I also
successful ran other vla- commands, before this one, in the same project.
I am still a newbie with ActiveX; but I am guessing it is because
AddLightWeightPolyline, might not be in my ActiveX file; but I can find it
using the Ctrl-Shift-Space lookup of Visual Lisp.
Does anyone know what the above error means and what I might do to fix it?