Renaming Views by string replace

I am trying to rename multiple views that have been named using “Floor 1”
I filtered by parameter name and string.
But I keep getting a error from Revit.


here is a clip from my workspace.
I’m thinking I need to fix my list from FloorPlanName to ViewName but I’m not sure how.

You are feeding “View Name : ……” as a value in the Element.SetParameterByName
you can’t as Revit says cannot contain the following characters in this case thus :

You want Element.GetParameterValueByName instead of Parameter.GetParameter.

this worked! thank you.

please mark as solution

You also want to make sure that you Apply the view names with the same FilterByBooleanMask because your current graph will not be naming things correct I don’t believe.