# Apply a suffix & order to automatic numbering of mark parameter

I am using a modified Dynamo to automatically number ducts & duct fittings. I am not skilled enough to determine how to apply a numbering sequence or prefix to the automatically populated mark value. I presume there is a relativity easy way to do this and would appreciate help in understanding how to obtain the desired output.

example of operation

What is the desired output?

A number sequense starting from 1 going to the count value?
That can be achieved using your count value in a code block (1â€¦x)

Do you also require a string sufix like A1 A2 A3 etc?

Let us know what the output youâ€™re searching look like and weâ€™ll be able to help out better

1 Like
2 Likes

I donâ€™t know if @luke1337 wish to keep the use of element idâ€™s in the mark value thou

But otherwise your method is exactly what I would do as well
I would probably combine the two codeblocks as well

2 Likes

Yes an alpha numerical suffix would suffice. Iâ€™ve no clue how to set a limiter though or switch from A to B at >99 for example.

The numbering just has to be manageable for fabricators and site team peeling off the drawings. Obviously readying a 4 digit number isnâ€™t ideal and Iâ€™m hoping to roll this out to air terminals with a prefix [G]-1, [G]-2â€¦ this also makes scheduling in Revit much easier too.

An alpha numeric suffix can be made by using a clockwork node like this:

Otherwise this might help, it is basically an â€śif-statementâ€ť asking "if less than 3 then set A, if less than 7 then set B else set C

1 Like

Thatâ€™s awesome! thanks so much

Additionally is there a conditional formatting I could apply likeâ€¦ If > A99, use B1, if > B99, use C1 etc?

Let me see if Iâ€™m getting you rightâ€¦

Using the same logic from my previous post

The codeblock with the syntax y@-3<1> corresponds to using list levels on â€ślayerâ€ť 3 on the y-value

1 Like