×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

polylines
5

polylines

polylines

(OP)
Could someone please tell me how to make a polyline from a set of lines?
Thanks

RE: polylines

This one is quite easy to accomplish-
simply enter the command pedit, pick on the first line, acad will ask you if you want to make it into a polyline, enter y, then use j (for join), pick the other lines (use can use a cross or regular window as well), then hit enter. Now all segments are one polyline.  Good luck.

RE: polylines

2
Dear mat20,

Copy and paste the below expessions in a file and svae it
as a text file named: MP.LSP
you can load this file into AutoCAD using the command
APPLOAD. After loading this file you will have new
command named MP. This command prompts to select an object
(line, arc, or polyline) and joins all coincident objects
to it.



(defun c:mp(/ e)
  (setq e (entsel "\n   Select a line, arc, or 2D pline: "))
  (if (or (= (cdr (assoc 0 (entget (car e)))) "LINE")
          (= (cdr (assoc 0 (entget (car e)))) "ARC"))
    (command "._PEDIT" e "Y" "J" "all" "" "")
    (if (= (cdr (assoc 0 (entget (car e)))) "LWPOLYLINE")
      (command "._PEDIT" e "J" "all" "" "")
    )
  )
  (princ)
)



Regards,
Farzad

RE: polylines

Another way is just to use mpedit (in R14 or earlier) or pedit, m (in 2000 or later).
This is a multiple line selection that will join them into polylines.  Plus it gives you the option of a "fuzzy" distance so that every line doesn't have to be exactly connected.

RE: polylines

2
u can easliy use PLJOIN command in autocad2000 or later, then select the lines u want to make one polyline, have fun


Pea$e

RE: polylines

What about if I have this error

"The object is not parallel to the UCS."?

How can I join lines lost in the space?

RE: polylines

search the web for flatten.lsp and use it to make that lines in the same elevation ( Z Coordinate =0 ) then use PLJOIN .


Pea$e

RE: polylines

Just use the object properties dialog to change the z elevations to be the same. If you are looking to have a ployline with differant z elevations you have to use a 3d Polyline. But it does not have a join command you will have to just draw over the existing lines.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources