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”
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