Filling in missing branches

I’m having an issue when trying to match different groups of surfaces to numbers. Each group has its own number, however, some groups do not contain any surfaces, which results in the branch numbering of the data tree containing some gaps. When using list length, these gaps do not show up as empty branches with length 0. What would be a way to fix this?

question.gh (27.9 KB)

Hoping you guys can help me out once more… Many thanks!

Wow, thats simple and smart! Thanks!

By the way, what how do you get these names on top of the icons?

a must have…