2025.3 Method
Changes 5
M

Pipe.CreatePlaceholder

Description:
Creates a new placeholder pipe.
public static Pipe CreatePlaceholder(
	Document document,
	ElementId systemTypeId,
	ElementId pipeTypeId,
	ElementId levelId,
	XYZ startPoint,
	XYZ endPoint
)
  • document
    The document.
  • systemTypeId
    The ElementId of the piping system type.
  • pipeTypeId
    The ElementId of the pipe type.
  • levelId
    The level id for the pipe.
  • startPoint
    The first point of the placeholder line.
  • endPoint
    The second point of the placeholder line.
Return Value Pipe The placeholder pipe.
  • The systemTypeId is not valid piping system type. -or- The pipe type pipeTypeId is not valid pipe 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