Revit 2026 API
Flex |
Checks if given type is valid flexible duct type.
Namespace: Autodesk.Revit.DB.Mechanical
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public static bool IsFlexDuctTypeId( Document document, ElementId ductTypeId )
Public Shared Function IsFlexDuctTypeId ( document As Document, ductTypeId As ElementId ) As Boolean
public: static bool IsFlexDuctTypeId( Document^ document, ElementId^ ductTypeId )
static member IsFlexDuctTypeId : document : Document * ductTypeId : ElementId -> bool
Parameters
Return Value
BooleanTrue if flexible duct type can used for this duct, false otherwise.

Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |

A type is valid for flexible duct if it can be used to the flexible duct element.
See Also