Numbering a category by "mark" parameter with a prefix and change in sequence

I’m very new to Dynamo and need some help.

I’m looking to create a script that will number for e.g. windows by “mark” parameter in a sequence of “A1, A2, A3, A4…B1, B2, B3…” I need the sequence to change from A to next letter in the alphabet when it reaches for e.g. 10. It also requires to have a prefix to give the mark like “SW - A1”, but I think I’m good with this part.

I’m working on Window category to get this working.

This is what I have:

I’m not sure how to combine the two lists to give me the output list of “A1, A2, A3, A4…B1, B2, B3…”
Anyone could help me out with this or suggest something?

I tried Combine.List node, but it gives null.

Build a range of letters by using ”A”..”Z”; in a code block.

Then build a range of numbers by using 1..10; on the next line.

Then use a + node with the letters as the first input and the numbers as the second.

Set the list level for the letters input to @L1 and keep lacing on Auto.

Add a List.Flatten node and you should have 260 items in your list structured as you like.

1 Like