Numbering of columns

Hello, I’m new to DYNAMO and I’m having trouble with a script.
I am trying to number all the pillars automatically, but I can only name them with the same number, not in a logical order.
Can someone give some tips?

With List.Create you have created a list containing 1 element. So list.count will give you 1. Then a sequence of 1 to 1 with a step of 1 will also only give you 1. That’s why you get 1 at the “Marca” parameter for all of them.
Remove the list.create node and it should work fine.

1 Like

I second with what @viktor_kuzev has suggested.

Alternatively, you may also use the “Use Level” @L2 for List.Count node and that would work just fine as well. [Refer image below]

3 Likes

Great job!
Thank you.
Can I get the numbering to follow the order of the axes of the structure?

I didn’t get your question.
Can you share an image to show what you mean?

In this scipt that you helped me, the columns are numbered in the order they were placed in the project, I need to follow a logical sequence

This topic would help you get the solution to your question.

Let us know, if you get stuck somewhere in the process.

Good Luck.

1 Like

The columns in Revit have a Column Location Mark that does that automatically:
image
If you need to get that information and put it in another parameter just use
Element.GetParameterValueByName and Element.SetParameterByName.

EDIT: Now I saw that’s not exactly what you want, but still you can use these parameters and remap them to numbering that goes from 01 to XX

1 Like

Does this post help you?

1 Like

Many thanks this was very useful

1 Like

Thank you, I’ll try to use this parameter.