Creates a new placeholder duct.
Namespace: Autodesk.Revit.DB.Mechanical
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public static Duct CreatePlaceholder( Document document, ElementId systemTypeId, ElementId ductTypeId, ElementId levelId, XYZ startPoint, XYZ endPoint )
Parameters
- document Document
- The document.
- systemTypeId ElementId
- The id of the HVAC system type.
- ductTypeId ElementId
- The id of the duct type.
- levelId ElementId
- The level id for the duct.
- startPoint XYZ
- The first point of the placeholder line.
- endPoint XYZ
- The second point of the placeholder line.
Return Value
DuctThe created placeholder duct.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The systemTypeId is not valid HVAC system type. -or- The duct type ductTypeId is not valid duct type. -or- The ElementId levelId is not a Level. -or- The points of startPoint and endPoint are too close: for MEPCurve, the minimum length is 1/10 inch. |
ArgumentNullException | A non-optional argument was null |