Renumber randomly created elements in Revit

Hi Guys,

I have a small problem:
I have created some elements in random order. Now When I export the Mark parameter and element ID and number them 1 to 100 (or whatever the last number is) , the order in the model is wrong. I guess it sorts everything by element ID. What can I do to sort the elements in right sequence?

Above I have attached the revit model with humble dynamo files for exporting and importing to revit.
Any help would be very much appreciated.


Hi Pavel,

I suggest looking at:

There are multiple ways of doing this, I have made a script for this aswell with just 5 nodes (of which one is a behemoth of an out-of-the-box Custom Node, haha).

I hope the link helps!


Thanks, that was very helpful:)