How to assign a unique Mark value to the Beams with the same Type and the same Length?

Hello everyone,
I have written this script to assign marks to the Beams that have the same Length ONLY.
Now I want Beams with the same Length and the same **Type to have the same Mark.

I would appreciate it if someone could help me to write the proper script.

@yaser.alipoor One of the solution would be to combine both parameter values and use it as a key for the GroupBy node.

I have combined the values using the String.Join node and “-” as a separator but you can do whatever works best for you. MarkValues.dyn (22.0 KB)


1 Like

Thank you so much @AmolShah for your help and for sending the dynamo file. :pray: :pray:
Very kind of you
:blush: :pray:

1 Like