Jump to content

Converted many line to many polylines


Recommended Posts

Hello!

For example I have many lines like as Fig. Needs convert line to polylines. Usual solution using pjoin many times.

Exist posibility Converted many line to many polylines using one times command?

12.02.jpg

Link to comment
Share on other sites

Watch the command line when you run the pedit command, if you start pedit without selecting anything first it will give you option to choose multiple items if you do that it will then ask if you would like to convert lines and arcs to polylines as normal, and at the next prompt if you now pick the join option it should join up as many separate objects as it can.

Link to comment
Share on other sites

CUI

Add the macro button

Convert selected line in a polyline

^C^C(defun C:JPL ( / ope ssnab )(setq ope (getvar "PEDITACCEPT"))(setvar "PEDITACCEPT" 1)(setq ssnab (ssget "_I"))(while (not ssnab)(setq ssnab (ssget)))(command "_pedit" "_Multiple" ssnab "" "_Join" 0 "")(setvar "PEDITACCEPT" ope)(setq ssnab nil)(princ));JPL; 

Link to comment
Share on other sites

Watch the command line when you run the pedit command, if you start pedit without selecting anything first it will give you option to choose multiple items if you do that it will then ask if you would like to convert lines and arcs to polylines as normal, and at the next prompt if you now pick the join option it should join up as many separate objects as it can.
You are also asked for a gap tolerance in the JOIN sub-command, which can be quite large, but the larger your tolerance is the more chance errors may be induced.
Link to comment
Share on other sites

maratovich , thank you button is working too.

Dana W In my particular case, I prefer a zero tolerance, then the lines exactly similar to polylines. Thanks for the reply

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