Assign a sequential number to an element of a family

Helo there!

I’m currently trying to automate the assigning of a sequential number to different elements that conforms a shelving unit in my model. Each element has to be numbered according to the next convention: TR-0X-0Y-0Z where X represent the number of the shelf in the model, Y represent the column where the object is located inside the shelf, and Z represent the position number inside the column as shown in the next image:

I’m just starting width Dynamo so I’ve being trying to make a program by using what I’ve find online and Chat GTP and I got this to far:

251205 NOMENCLATURA POSICIONES.dyn (18.5 KB)

I think I need to give the program a line or a vector to fill the parameter along the elements the way I wants but I’m not shure.

Any suggestions will be very appreciated.

Not sure how the Family is set up. Are those blue Families Shared nested?
If yes then you could then do something with XYZ coordinates maybe?
X(Y) = column and Z (or the Level) = shelf?

A quick draft.

DynamoBIM.dyn (33.7 KB)

1 Like