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.