Lee Mac Posted April 20, 2009 Posted April 20, 2009 Hi Guys, I have tried using the curve command: vlax-curve-isClosed but, when I select a curve that I have drawn (say an LWPOLYLINE), even if the ends are oSnapped when drawing, it will return nil. The only way I can get it to return T is if I type "C" to close the polyline when drawing it. I thought that this command just checked whether the start and end points are in the same place - which, when snapped together, they are. This is driving me up the wall... Cheers Lee Quote
CarlB Posted April 20, 2009 Posted April 20, 2009 Sounds like it is working, depending on the definition of "closed" If you want to compare start end end points, how about getting "start param" & "end param" & see it they are the same.. Quote
Lee Mac Posted April 20, 2009 Author Posted April 20, 2009 According to the ACAD help, I thought that the object is closed if the startpoint and the endpoint are in the same position - is this not the case? Quote
lpseifert Posted April 20, 2009 Posted April 20, 2009 Not the case... draw a polyline and snap to the begin point, select the polyline and in Properties it will be Closed=No You should be able to force it closed. (vlax-put-property obj 'Closed 1) Quote
Lee Mac Posted April 20, 2009 Author Posted April 20, 2009 Ahh I see, Thanks for that clarification. Thank you both for your replies and time Lee Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.