Instance counter

Greetings everyone
It is with great joy that I have used a script which originally was developed by Erfajo.


As I am dusting off this old script, I wonder if anyone has any thoughts or pointers as how I could modify the script to instead give a three digit count-number like 001, 002, 003 as opposed to the current 1, 2, 3…?

Any help is greatly appreciated. Good weekend to you all! :smiley:

Use the node String.PadLeft, like this:


I followed the suggestion in the link and came up with this. Despite the warning message (Dynamo for Revit 2.0.2) it works like a charm in version 1.3.2. :slight_smile:

not a big problem, the script is only telling you to change Count to DSCore.List.Count and that will work without warnings in Dynamo 2.

1 Like

Ah! Thank you for your help architectcoding! :wink:

1 Like