Rename grids

When creating grids in Revit, Revit will name/number them in the order that they were created based on the naming convention last used. If you haven’t been consistent in your creation of grids, you’ll more than likely need to rename them. This can prove problematic as Revit will not allow you to have two grids identically named. If you try, Revit will return an error saying, “the name entered is already in use. Enter a unique name.”  As a workaround it is necessary to temporarily rename the grids before naming them as intended.

To speed up this process I have developed two custom nodes available in the Parametric Monkey Dynamo package:


‘Grid.RenameAlphanumerical’ will rename grids alphanumerically from A to ZZ, excluding “I” and “O” as per convention.


‘Grid.RenameNumerical’ will rename grids from 01 to 99.

The sortAxis input requires a string, either “X” or “Y”, which relates to the axis the grids are sorted along. This affords flexibility in deciding which values (alphanumerical or numerical) you want to run from left to right, and bottom to top. The tempPrefix input is a string which can be used if other grids are currently using the same mark value. The toggle will update the temporary mark values to the final mark values.

13 Comments on “Rename grids

    • Hi David. It is working for me with BVN v1.4.6. I suspect the problem is because you are using Spanish. The node is trying to update the “Name” parameter of the grid. You’ll need to edit the node and modify this so that it has the correct spanish parameter. Let me know if this works.

  1. Hi, it’s great.
    But, how to change direction of renaming (alphabetical one)? From top to bottom?

    • Hi Ana. I have just updated (v1.4.7) both nodes to include a boolean if you want to reverse the numbering sequence. Give this a try. It should solve your problem.

  2. Hi Paul,
    Great script, it’s worked wonders for me. Our office convention is to have grids numbered 1, rather than 01. How would you modify the script to achieve this? I looked around in the custom node but nothing jumps out at me as a solution. Also curious how you programmed the I’s and O’s out of it. Thanks!

  3. Hi Paul,

    Very helpful comment I see now how you were adding the 0’s to the numerical grids and eliminating the I’s & O’s in the alphanumerical grids. Also good to know about the paid tools, I couldn’t find any information regarding pricing and I’d be interested in additional details.

    I find with some projects when I run this Dynamo graph I get the error in Revit “The name entered is already in use. Enter a unique name.” Some aspect of the temporary renaming must not be working but I have a poor understanding of that part of the graph. Any insight you may have into resolving this issue would be greatly appreciated.

  4. The prices aren’t published on the website. If you would like more information, please send me an email.

    If you are getting that error it means there is a grid already with that name. Change the temporary prefix to something else which isn’t in use (like ‘fjfhghgh’) and then re-run.

  5. hI, I am using this custom package and i’ve made it a part of the dynamo player. I’ve created a script where I not only rename gridlines but I also create gridlines using the GridByStartPointEndPoint node.The problem i’m having is that whenever I run the scrip through Dynamo player, it creates new grid lines instead of just updating the old ones and adding the new additional grids and changing the spacing, etc.

    Any solution for this?

    I’ve posted this on


    • The issue is due to ‘element binding’ and is a core function of Dynamo. I’ve responded to your forum post with more info.

Leave a Reply to paulwintour Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.