Lisp Routine to explode nested blocks

RGilbert77
Participant

Lisp Routine to explode nested blocks

RGilbert77
Participant
Participant

Hello All,
I have found several lisp routines that explode all nested blocks within a parent block, but not the other way. I am looking for a lisp routine that will select all blocks in a drawing, determine if it has a nested block inside and then explode. Continue until no nested blocks remain. Forgive the analogy, but imagine an onion where every layer is a nested block. I don't want the outside layer, I want the most internal layer.

Any help would be greatly appreciated.

0 Likes
Reply
Accepted solutions (2)
630 Views
10 Replies
Replies (10)

Moshe-A
Mentor
Mentor

@RGilbert77  hi,

 


@RGilbert77 wrote:

Hello All,
I have found several lisp routines that explode all nested blocks within a parent block, 

 

if you use that lisp and at select object(s) select all option, does it do want you want?

0 Likes

Kent1Cooper
Consultant
Consultant

@RGilbert77 wrote:

... select all blocks in a drawing, determine if it has a nested block inside and then explode. Continue until no nested blocks remain. ....


Just to clarify:  You do want the lowest/most-internal Blocks to remain as Blocks?  That is, not themselves also Exploded if they contain no further nested Blocks?

Kent Cooper, AIA
0 Likes

Moshe-A
Mentor
Mentor

@Kent1Cooper ,

 

You think what i think?

how about block contain 2 blocks each of them contains 3 blocks each of them contain 4 blocks....

 

who is going to win?! 😀

 

 

0 Likes

3wood
Advisor
Advisor
Accepted solution

You can try EXPLODEALL.

There is an option to keep the last level of block.

EXPLODEALL1.JPG

0 Likes

RGilbert77
Participant
Participant

It does not.

0 Likes

RGilbert77
Participant
Participant

I tried to be as clear as possible.
But yes...that is exactly what I want.

0 Likes

RGilbert77
Participant
Participant

Is this a standard command?
I just tried it and it's unrecognized.

0 Likes

Kent1Cooper
Consultant
Consultant

@RGilbert77 wrote:

Is this a standard command?  I just tried it and it's unrecognized.


Not in vanilla AutoCAD, at least.  >Here< is a link to a place where you can get it.

Kent Cooper, AIA
0 Likes

RGilbert77
Participant
Participant
Accepted solution

@Kent1Cooper This is exactly what I was looking for.
Thank you for your help!

0 Likes

RGilbert77
Participant
Participant

@3wood This is perfect. Thank you!

0 Likes