Renumber windows by mark with prefix

Hi All,

I’m very new to Dynamo and trying to create a renumber script for windows with a pre fix.
I’d like to select all windows in the Revit project and get an output that would look like this: W-1, W-2.

I think I got the prefix part to work, I just need to find a way to override the current mark and renumber them.

Any help would be greatly appreciated!

It appears that you have it all set up to work correctly. Is it not giving you the results you would like, or what do you need help with?

I’m kind of wondering how I can make the Mark start at 1. In my current script it will just add the prefix but not restart the numbering.

You will want to count the list of elements, then you can create a number range from that value starting from 1, then use to combine with your prefix to write to the parameter.
Hope this helps!

1 Like

This is awesome! Thank you so much!

You’re welcome!