Jump to content

5 points to a rectangle?


samifox

Recommended Posts

Hi

 

if i use a polyline to draw a rectangle i see in the properties 5 points instead of 4, why? when programming it can cuz problems.

 

Thanks

Shay

Link to comment
Share on other sites

When you draw a rectangle manually with line or polyline, or with lisp coding, you need to supply 5 points. Try it and count the points.

Link to comment
Share on other sites

You are not drawing correct polyline if you omit to supply "Close" option after 4 picked points... Remember to do this as your new habit as when it comes to sharing your drawings, you may be the cause of incorrect drafter's job... Many of codes were provided accounting that your polylines are closed entities DXF code (70 . 1) for 2d polylines and if you don't stand by the rule of "C" option, some of the codes may fail to execute properly... Still there is CleanPoly.lsp on the site of Gile that can convert these wrong polylines to correct ones, but I strongly suggest that you use close option and to use it like learned by hard...

 

Attachment - Giles routines - original and the one I modified for multiple polylines...

Clean_poly.lsp

Clean_polys.lsp

Link to comment
Share on other sites

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