All view type parameters to Uppercase

I have an old script (below) which sets all “View Names” to uppercase. I’m trying to update it to handle any arbitrary parameter input and convert it to uppercase.

The end goal is to have everything uppercase including:

  • view names
  • schedule view names
  • sheet names
  • sheet numbers
  • any project parameters applied to views
  • etc.

Here is the error I’m getting: “Sheet Number is empty”

error

Here is my new script:
view parameters to upper case.dyn (25.2 KB)

I’m kinda at a loss on how to proceed. Can someone point me in the right direction?


Sample Revit file: sample.rvt (2.2 MB)
Old script I’m trying to update:
view titles to upper case.dyn (10.0 KB)

Can you show the yellow error messages from the nodes?
It makes it a lot easier to understand :slight_smile:

Can you check the levels or lacing?

Parameter.Value error:
Warning: Parameter.get_Value operation failed.
Object reference not set to an instance of an object.

String.ToUpper error:
Warning: String.ToUpper operation failed.

Element.SetParameterByName error:
Warning: Element.SetParameterByName operation failed.
The call is ambiguous between the following methods or properties: ‘Revit.Elements.InternalUtilities.ElementUtils.SetParameterValue(Autodesk.Revit.DB.Parameter, Revit.Elements.Element)’ and ‘Revit.Elements.InternalUtilities.ElementUtils.SetParameterValue(Autodesk.Revit.DB.Parameter, string)’

I’m filtering the nulls given from element type out. Then I’ll filter the parameter storage type and if the parameter is readonly. I’m not sure you need the “hasvalue” filtration. Hope this helps you further :slight_smile: