element.setParameterByName Warning


I created script that gives me the bottom offset and middle offset of the duct accessory. It is a kind of work around for openings in the walls for ducts. It works fine but with a warning. I tried to find reason but without a success. Maybe someone with more experience could give me a tip what could be the reason?

Text of warning:

**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 am new here, sorry in advance if topic is in wrong section.


you are feeding nulls into the elementsetparameterbyName node thats wy you get a warning
some off the elements don’t have a value parameter OpeningHeight

ps i changed the Categorie to Revit



Youre welcome If a comment solved your problem, mark it as solution (and maye leave a like here and there).

I have the same error message but a very different script.

My script turns existing elements in Revit from new to existing and deletes demo. Do you have a suggestion for this scenario?