element.setParameterByName Warning


#1

Hello,

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.

Regards


#3

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


#4

Thanks!


#5

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