Sequence Numbering with Exception

I am very new to Dynamo and want to write a script that will number curtain panels sequentially, which is currently working. But I want to have an exception that if two shared parameters are the same value between panels it will give them the same number, and then continue sequentially numbering.

GroupBy that parameter value (Key) and then sequence each group

3 Likes

Iā€™m not sure i understand what you mean. Would that be grouping by both parameters and then sequencing?

Look at the GroupByKey node. You can group the elements by parameter value and then sequence the groups instead of the individual elements. That will give a unique number to each element with a unique value.

Sometimes and image is the best way to explain thing.