I have got a question regarding value copying from numeric parameters to text-based parameters. Script worked just fine while BBH_Length was a Length type parameter, but when I have changed it to text-based parameter, it stopped copying values.
To avoid breaking your script when you encounter a parameter that isnt a string, i’d use an if statement, where you first find out what storage type the parameter has and then feed it a number or a string:
For some reason Number to Rounded String node stopped processing values.
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 don’t really know how to arrange those if nodes. This was a ready-to-use script which I got from other person and just input necessary information. And it works in terms of other parameters and element category. And for some reason with Conduit Fittings it stopped processing values.