PDA

View Full Version : Use SSGET to select everything, then explode the selection set


stephen.coff
2007-03-20, 03:08 AM
I want to make everything on the drawing a selection group so i can explode it all.
I am stuck as to how to do this, could anyone assist ?

(setq ss (ssget "x"))
(command "explode" ss)

this doesn't work and I haven't played with lisp for a while nor am I any good.
any assistance would be greatly appreciated.

Regards

Stephen

Adesu
2007-03-20, 03:30 AM
in my computer is worked.

I want to make everything on the drawing a selection group so i can explode it all.
I am stuck as to how to do this, could anyone assist ?

(setq ss (ssget "x"))
(command "explode" ss)

this doesn't work and I haven't played with lisp for a while nor am I any good.
any assistance would be greatly appreciated.

Regards

Stephen

stephen.coff
2007-03-20, 04:47 AM
Are you sure it has ?
I have tried it on multiple different Architectural files I get and this doesn't work.
It seems to though a few clicks and you soon realise there are still blocks, hatching or polylines etc

Is this just me or am i missing something ?
Is there any system variables that affect this sort of thing ?

Regards

Stephen

Adesu
2007-03-20, 08:09 AM
(setq ss (ssget "x"))
(command "explode" ss)

<Selection set: e>
nil

Hi Stephen,
I just test for rectangular,then look at drawing area,it become individual line


Are you sure it has ?
I have tried it on multiple different Architectural files I get and this doesn't work.
It seems to though a few clicks and you soon realise there are still blocks, hatching or polylines etc

Is this just me or am i missing something ?
Is there any system variables that affect this sort of thing ?

Regards

Stephen

ccowgill
2007-03-20, 01:38 PM
I want to make everything on the drawing a selection group so i can explode it all.
I am stuck as to how to do this, could anyone assist ?

(setq ss (ssget "x"))
(command "explode" ss)

this doesn't work and I haven't played with lisp for a while nor am I any good.
any assistance would be greatly appreciated.

Regards

Stephen
try this instead

(setq ss (ssget "_x"))
(setvar "qaflags" 1)
(command "_.explode" ss "")
(setvar "qaflags" 2)

stephen.coff
2007-03-22, 12:35 AM
CCOWGIL,
Greatly appreciated, that did the trick.
Q. What are the "qaflags" doesn't say anything in help as to what they are ?

Regards

Stephen

kennet.sjoberg
2007-03-22, 12:58 AM
. . .Q. What are the "qaflags" doesn't say anything in help as to what they are ?. . .
Here is the answer LINK (http://forums.augi.com/showthread.php?t=11688#post68484)

: ) Happy Computing !

kennet