Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

polylines 5

Status
Not open for further replies.

Guest
Could someone please tell me how to make a polyline from a set of lines?
Thanks
 
Replies continue below

Recommended for you

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.
 
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
 
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.
 
u can easliy use PLJOIN command in autocad2000 or later, then select the lines u want to make one polyline, have fun


Pea$e
 
What about if I have this error

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

How can I join lines lost in the space?
 
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
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor