Jump to content

get 2d poly line coordinates with bulge factor


srikanthkamuju

Recommended Posts

Hi All

 

i am taking 2d polyline as input i want the coordinates of that polyline with bulge factor. later on how to draw a 3d poly line with that same points

 

 

Thanks in advance

Link to comment
Share on other sites

If understand well your issue, the code below will allow you to create a list with vertexes of polyline (no error protections), next use SUBST function to modify the Z coordinate with desired amount (this code should be based on length of vertexes list) and generate the 3D polyline from this list.

 

(setq PLineEntity    (car (entsel "Select polyline: "))   ;select polyline to list
     PLineAssocList (entget PLineEntity)                 ;get his associated list
     VertexesList   '())
(foreach SubList PLineAssocList                           ;parse polyline to list vertexes
(if (= (car SubList) 10)   ; code DXF 10 = vertex
 (setq VertexesList (append VertexesList                 ;store vertex coordinates
                            (list (cdr SubList))))
)
)

 

Regards,

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