Explodeblock keeping in its original layer

Hello again

I received a STEP file and there is 600+ nested blocks. I have converted part of the blocks into layers in Rhino but still some hundred nested blocks remain. I hope the nested blocks are keep in their “layer structure”. What I need to do here is to modify the pieces that client needed, and export it back to client without changing the Block structure. My plan is to convert all blocks (including nested blocks) into layers in Rhino=> Edit the pieces => Convert layers back to blocks =>export STEP.

Explodeblock command moves all processed objects into default layer. Can they be located in their original layer? Picking each one of them back to their original layer will be a nightmare. Thank you.

251113_Explodeblock locate to their original layer.3dm (13.7 MB)

Pascal made a script at some point to handle this:

Yes I used it on all nested block. The attached file includes those fail to unblock further. Explodeblock works on these blocks but it move all objects to default layer which I don’t want to.

What I see is that the file you posted above is unblocked, and objects move to the layer they were on.

Did you make sure this command line option is set?

image

Oh there is the option to pick! Thanks for pointing out :+1: :heart:

By the way, this is awesome command and highly recommended.:+1: