Create a Wall ID Instance based on Levels

Hi everyone,

I need to create an unique ID by each wall in my project based on the levels, I can get and write correctly the information about the level in each wall, but when I try to use the List.GroupbyKey, count the number of instances and sum the info with the level Revit does not understand, even if at first it show that the information were add correctly.

The info in the table is getting mixed (W1-10, W1-10, W1-10, W1-10, W1, W1, W1, W1) not how I want (W1-1, W1-2, W1-3, W1-4, W1-5…)

What I am missing or doing wrong?

Thanks in advanced,

I think you just need to flatten your parameter value input. You can see from the output Ids that you’re setting the values for the same element.

Thank you Nick, it was exactly that! Working perfect now :slight_smile: