Jump to content

Recommended Posts

Posted

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... :cry:

 

Cheers

 

Lee

Posted

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..

Posted

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?

Posted

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)

Posted

Ahh I see, Thanks for that clarification.

 

Thank you both for your replies and time :)

 

Lee

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...