Have a heap of layers with lines and/or plines. Want to go through them all turning all lines into plines and then join connecting segments into plines. I can do this with the pedit command but can't get the following to work...it crashes at the pedit command:
(setq layname (getstring T "Enter Layer name: "))
(setq layss (ssget "X" (list (cons 8 layname))))
(command "pedit" layss "" "Y" "J" layss "" "")
Wanted to use aloop to go through a list of layer names but that was a bit ambitios to start off with!
Any suggestions on availbale ActiveX methods to do the pedit->join bit??
Would save me a heap of time if I ever came to do it again (I've already done most of the layers manually, using a lisp selection set expression return value at the 'pick objects: ' prompt. Works but need more automation!
Hope that above is clearly expressed.