Revit 2026 API
MEPSectionIs |
Check whether the type of fitting in this section is main.
Namespace: Autodesk.Revit.DB.Mechanical
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public bool IsMain( ElementId fittingId )
Public Function IsMain ( fittingId As ElementId ) As Boolean
public: bool IsMain( ElementId^ fittingId )
member IsMain : fittingId : ElementId -> bool
Parameters
- fittingId ElementId
- The element id which can be duct fitting and pipe fitting.
Return Value
BooleanTrue if the type of fitting in this section is main False if the type of fitting in this section is branch

Exception | Condition |
---|---|
ArgumentException | The ElementId fittingId does not correspond to a valid section fitting member. |
ArgumentNullException | A non-optional argument was null |
See Also