Get item branch and index from list

Hi all,

I have a list of breps in branches. The branches are of various length, some contain 1 others 4 or 5 elements. I would like to get the branch and index of each of those breps in a separate list (I´ve attached a screenshot of my end goal below). This seems like a task for an existing Grasshopper component, but I wasn`t able to identify any that would help me.

Eventually I would like to tie together the breps and corresponding branch ID-s so that I could create a CNC layout with all the elements labelled by their branches and indexes therein.

Has anyone come across this situation before and would have some advice?

Thank you in advance

Hi
Is this what you’re looking for?

3 Likes

Perfect! Thank You, that`s exactly what I was looking for!

1 Like