2027 Method
Changes 0
M

Duct.CreatePlaceholder

Description:
Creates a new placeholder duct.
public static Duct CreatePlaceholder(
	Document document,
	ElementId systemTypeId,
	ElementId ductTypeId,
	ElementId levelId,
	XYZ startPoint,
	XYZ endPoint
)
  • document
    The document.
  • systemTypeId
    The id of the HVAC system type.
  • ductTypeId
    The id of the duct type.
  • levelId
    The level id for the duct.
  • startPoint
    The first point of the placeholder line.
  • endPoint
    The second point of the placeholder line.
Return Value Duct The created placeholder duct.
  • 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.
  • A non-optional argument was null