Hello,
I have created a script to capitalize view names in my Revit projects. When the script completes it’s run, I get the following error message and then my view names do not get changed/capitalized. Any ideas as to where I am going wrong?
User 3D views have the “{ }” symbols in their name, is that the issue?

Expand the error and look at the specifics. It should tell you which views are causing issues. Annoyingly, the default 3D views do contain “{}” which is apparently fine when created by Revit, but cannot contain those characters if renamed. Even if you’re “renaming” the view with the same name, those 3D views will likely error.
I assume if your script is grabbing the 3D-User Name views, then yes.
I would collect all views and run those elements into the Element.Name node, and filter views which contain the “{” symbol out.
@Nick_Boyts ah, I feel dumb missing that…it is indeed the 3D views…
@m.owens I’ll give that a try, should fix my issues…thanks all, just needed to talk thru it I suppose, ha!