Numbering of Revit Elements

Hey everyone,
(Bit of a Dynamo noob, please excuse me)
I have a script which numbers elements, for example piles. It can be run in Dynamo Player also.

All works well apart from if I want to start from a specific number. So if I want to start my numbering from say 7, it will show a ‘null’ value.

For context, when i run this script - it will mark them correctly, starting from P1 up to however many piles are in a project. The inputs for Dynamo player are a 2 Integer Sliders (Start Number & Step), the Family Type and 2 Strings for Prefix and Suffix.

You would have to show us your code for anyone to tell you what the issue is. As long as you’re using a Sequence node or code block with the correct syntax this should work.

Hey there, sorry as a new user it wouldn’t let me upload the script. But i have attached a screenshot to my original post now

You’re creating an invalid sequence. You’re using the number of elements as the end condition, but that’s only the case when incrementing from 1.

You would have to calculate the end value based on the start value and the step value which kind of defeats the point. You’re better off using DesignScript here as it’s more flexible.

Try this in a code block:
start..#count..step;

More info on DesignScript ranges.

Thanks so much for your help, that solved it!