Room name by area size and previous name



How can I give rooms names acccording to area size, department parameter and name paramer:

Room A is copied 3 times.They all have different sizes. They all have the name “A”. They all have the same department parameter value(101)

Room A is copied 3 more times. They still have the same name “A”, but now the 3 last rooms have a new department parameter value(102)


How can I make dynamo sort and rename the rooms with the same department values according to size and give names from a list which contains the new room names.

Rooms A(101) becomes A1,A2,A3

Rooms A(102) becomes A1,A2,A3



The above definition should mostly do what you’re trying to achieve