CompuServe Thread

lines

3 messages in this thread
#21314From: – steve wickeMar 29, 1988 5:35 PM
Jamie : Is there a command or lisp program to convert "lines" to "plines" which have a specified width on a particular layer found throughout a drawing. This would be done to an entire drawing or layer rather than with pedit which selects single entities Thank you very much Steve Wicke. 503 223-6663
#21347From: Steve McCall [ADESK]Mar 30, 1988 12:16 PM
Steve, there is no command or LISP program to do this (that I know of) but it wouldn't be too hard to write one. Assuming you have AutoCAD Release 9, you would use the SSGET "X" function to get a "selection set" of LINEs on a certain layer (or that have some other common property), then use ENTDEL and COMMAND "PLINE"… to replace the lines with plines. The sample programs in the back of the AutoLISP Reference Manual show similar functions. If you've never written a LISP routine, I strongly encourage you to try it! You'll be surprised/amazed at what you can do with just a few lines of code. There's good help available through books, classes or this Forum. (setq newuser hacker) =SM=
#21354From: Jamie Clay [Adesk]Mar 30, 1988 12:40 PM
You would have to construct a Lisp routine to do this, and it would not be too hard to do. 1) build a main selection set of just lines 2) advance through the set pulling out the single line entities 3) using PEDIT, convert line to a pline and join it with the main selection set. Only the ones connecting will join. After the join is done you can change the width. It could be an interesting routine to have around, are you experienced in lisp programming yet? Jamie