I am importing STEP files from Inventor. The overall block comes in nested the same way the objects are structured in Inventor. There are many levels of nested blocks and each sub-block has a varying number of nested children I am trying to use the new Grasshopper block feature tools to extract the lowest child of each nested block.
The issue I have is that if there are multiple sub blocks, explode will continue to explode, loosing the blocks with fewer sub blocks. Its a little hard to articulate but my screen shots and files should demonstrate what I am trying to do better. I created a very simple example file, but the files I am trying to work on contain dozens of blocks, varying greatly in number of nested sub-blocks.
My goal here is to simplify the inventor geometry but to maintain the block name, so if there is way to call back the block name after it was explode to its individual geometry, that would work too.
Thanks but this isn’t really what i am looking for. The example I provided was very simplistic to better illustrate my point. The files i am trying to work on are are far more complex. There are dozen of nest blocks. I am trying to avoid all the filtering each level as it explodes and just grab the last one
It replaces block definitions that do not contain any instance, so are a leaf, and allows to purge these definitions once replaced.
I’m assigning the block-name to the resulting geometry for debugging purposes, but you can preserve the original one or even prepend the block-name to the object-name, as you like.