Message 1 of 4

Not applicable
11-10-2018
01:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello!
I would like to compare the first and last coordinates of a polyline and then close it when the results were equals
This code does not work, the IF line never returns TRUE
(setq ename (entsel "Select object to be closed"))
(setq obj (vlax-ename->vla-object (car ename)) )
(setq StartPoint (vlax-curve-getStartPoint Obj) )
(setq EndPoint (vlax-curve-getEndPoint Obj) )
(if (= (strcat StartPoint) (strcat EndPoint))
(vlax-put-property obj 'Closed 1)
)
What am I doing wrong?
Thanks in advance + regards,
lzucco
Solved! Go to Solution.