@calderg1000 wrote:
....
(fix (vlax-curve-getendparam (setq sn (vlax-ename->vla-object s))))
....
Just for your information, (vlax-curve-...) functions do not require conversion of entities to VLA objects -- they will also take just the entity name [as in Message 3]:
....
(fix (vlax-curve-getendparam s))
....
and of course replacement of 'sn' with 's' later where parameter values are pulled.
In some routines the VLA-object conversion is needed for other reasons, so it can be appropriate, but it's not needed for something like this.
Also, if you're using parameter values, instead of the 10-code entries in entity data, then there's no reason to restrict it to LWPolylines [also as in Message 3]:
.... '((0 . "*polyline"))) ....
Kent Cooper, AIA