Creating blocks of linework at specific height

I think this is relatively easy, but I am stumped. I have a script that is taking geometry and slicing it at regular heights. I need to create blocks of all the linework at specific height. I know this is a tree/data management problem I just keep getting the wrong results.

Eventually I need the blocks named by (parent block#_slice number#) since I have 100s of these objects. I think I can handle the naming so long as my blocks are coming out ok.

Thanks

27 heights so 27 blocks
What am i missing?


Slicer-Forums.gh (145.5 KB)

Data internalized

Does this do what you need? The curves are already organized into branches by layer, so you just need to feed those directly into the block component and make sure the names input has matching structure.

Slicer-Forums-2.gh (151.2 KB)

1 Like

OMG so simple. Thank you so much. I understand now