Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Searching for polyline autolisp

Status
Not open for further replies.

ohiocad

Structural
Joined
Apr 6, 2001
Messages
196
Location
US
I have heard of the lisp routine in question, but have been unable to track it down, since I'm not even sure what it is called.

What I'm looking for is a lisp that,, when you select a line, will create a polyline with anything that connects to that line. One click, and done. Even better would be to select a bunch of objects at once, and have it create all the closed polylines it can (fuzz factor set to 0... need to know if anything is open), but I'll be happy with what I can find.

(We have drawings that contain hundreds of rectangles and triangles, all single line objects.... we need to change them to closed polylines)

Any info appreciated.
 
Does the "mpedit" command work OK on joining & closing multiple lines/polylines?
 
mpedit does that. But I think there might be another command that does the same thing. I can't remember it off hand, but it wasn't a lisp.

Civil Development Group, LLC
Los Angeles Civil Engineering specializing in Hillside Grading
 
CarlB,

That will work, thanks for the info. Not the way I remember hearing about it working, but the end result is the same, so I'll take it. Thanks much!
 
I made mine.
custom button called "PE LOOP"
Disc: for making a pline loop from singles lines
macro is written as (pe y i all x)spaces ar important.
to use it: select one of the lines you want polylined and then the ICON. it joins all the lines that are at endpoints.
works most of the time for me.
have fun
REP
 
correction its not an i, its a j!!!!!!!
(pe y j all x)

works much better when you "JOIN" lones. HA

Have fun
REP
 
PEdit [select one line segment] Join All [return]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top