Feed a List into this node and it will return a number range, starting at 1 and up to the total count of the given List.
Useful to renumber Revit elements, as in this example, where it helps generating the numbering of certain Rooms in the model:
It is built mainly with OOTB nodes and one custom node. It operates a Count method over the list object, and using this value to generate a number range from 1 to the obtained count. Last implementation avoids unexpected behavior when the input list is empty. In that case, now the output is an empty list.
One thought on “Enumeration”