Hello everyone,
I’ve developed a routine that renames all elevation views in the project to a new numbering system. For example, renaming view A101 to B201.
However, when I run it in REVIT, I’m getting the following error message:
Could someone help me understand what might be causing this issue? I’m not sure what went wrong.
I’m sharing the routine code below.
Thank you all in advance for your help.
What does the list of view names look like before you try to rename it? It could be a case of the first item you’re renaming is the same as another item in the list ready to be renamed. It’s the same case for any workflow that attempts to change the numbering of views detail numbers that are already numbered, B2 is still B2 as you’re trying to change C1 to B2. To help with that, you’ll want to rename all the views before you give them the name you want. You can do this by adding an “x” or a “!” or some random character or phrase to the front or back of the name prior to the last set parameter.
Hope this helps!
3 Likes