Simple question, Create "x" formula in a codeblock

A very simple question that I can’t seem to find an answer. I am trying to create the below.
X formula
Any idea how I can create the above? every time I type 1…x in the code block, it won’t give me the x at the beginning.
I am using revit 2020 and dynamo 2.3
I apologize for the noob question, I am just starting with dynamo formulas.
Thank you in advance

Can you share a screenshot of what you are getting?

I am currently trying to run this script by Steven

and as you can see, he uses the x formula above.
Thank you for your response


Böyle birşey mi yapmaya çalışıyorsunuz?

Can you share a snip-it of your code? In your OP you wrote 1…x (three dots) there should only be two.

If you could also check out the Dynamo Primer section on Code Blocks. It will answer all of your questions regarding them.


Steven, thank you for your initial code.
I am trying to create this detail number arrangement using your initial code.

So far I have this:
View Number by Location_Change.dyn (87.5 KB)
Thank you very much for your help,

You can see video example above.


Thank you!, I restarted dynamo and it finally worked. I am still trying to figured out how to achieve the arrangement above but this helps! thanks!

Do not forget to mark the solution for help you have completed.Have a nice day.


If you follow my links in my OP you will find a video that Nate_Holland put together. It’s a bit old now but the general concept is still working.

If you can give it a shot and start a new post on this since it differs too much from your OP. It is really helpful to show screenshots of your graph too. Not everybody has access to Rvite and Dynamo all the time and are unable to open your files.

1 Like