Jump to content

converting single 3dpolyline zigzag string into two separate 3dpolylines


pyou

Recommended Posts

Posted (edited)

Is it possible to convert a single 3dpolyline zigzag string into two separate 3dpolylines using a lisp code?

 

Images attached 

 

Thank you for help!

 

After.PNG

Before.PNG

Testt.dwg

Edited by pyou
dwg example added
Link to comment
Share on other sites

Posted (edited)

This should get you close to what you need. with minimal error handeling only allows you to select 2 polylines at a time & they have to have the same number of vertex for this to work.

 

ZZpoly.lsp

Edited by mhupp
Link to comment
Share on other sites

17 hours ago, pyou said:

Is it possible to convert a single 3dpolyline zigzag string into two separate 3dpolylines using a lisp code?

 

Images attached 

 

Thank you for help!

 

After.PNG

Before.PNG

@pyou It seem OP ask to convert ONE  ZIGZAG  3dpoly  on two  3dpoly .  Is it so? 

 

Please upload a before and after DWG 

Link to comment
Share on other sites

5 hours ago, devitg said:

@pyou It seem OP ask to convert ONE  ZIGZAG  3dpoly  on two  3dpoly .  Is it so? 

 

Please upload a before and after DWG 

see Images, original 3d polyline before is a zigzag and after are two separate 3d polylines. What you don't understand?

Link to comment
Share on other sites

Posted (edited)
16 hours ago, mhupp said:

I think i did that backwards.

yes mhupp it is supposed to be opposite. Zigzag is original 3d polyline and two new 3d polylines needed.

 

I have attached example of zigzag 3d polyline

 

Edited by pyou
Link to comment
Share on other sites

5 hours ago, pyou said:

yes mhupp it is supposed to be opposite. Zigzag is original 3d polyline and two new 3d polylines needed.

 

I have attached example of zigzag 3d polyline

 

 

Top down is usually how things flow. I guess you got an undo lisp now.

 

 

 

 

2Poly.lsp

  • Thanks 1
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...