Hi guys,
I have a selection of region items created with SECTION command, after created I want to convert them into polylines.
(vl-cmdf "_section" obj "" p3 p4 pt1)
(setq objr (ssget "X" (list '(0 . "REGION") (cons 8 lyr))))
(vl-cmdf "_chprop" objr "" "Layer" layername "")
.......
.......
(setq ss (ssget "X" (list '(0 . "REGION"))))
I want to keep the object in the same layer of the 3Dsolid it came from, so selecting by layer it's not a good idea.
Since they are not in Z=0, when exploded the result are 3Dpolylines and other stuff being created that cannot be joined properly.
So I'm using FLATTEN comand to get them to Z=0 and the command explodes them into plines and splines, that can be joined.
The problem is I can't figure out a way to select all objects after using flatten
Right now I have to ask the user to select all exploded objects, I would like to aviod that.
(acet-flatn ss hide)
(command "_zoom" "_E")
(prompt "\nSelect lines to be joined: ")
(setq objf (ssget))
(command "_pedit" "_M" objf "" "_Y" "_J" "" "")
Hope you guys can give some ideas, thanks!