Pipe.Create
Description:
Creates a new pipe that connects to the connector.
Creates a new pipe that connects to the connector.
Remarks:
The new pipe will have the same diameter and system type as the specified connector. The creation will also connect the new pipe to the component who owns the specified connector. If necessary, additional fitting(s) are included to make a valid connection. If the new pipe can not be connected to the next component (e.g., mismatched direction, no valid fitting, and etc), the new pipe will still be created at the specified connector position, and an InvalidOperationException is thrown.
The new pipe will have the same diameter and system type as the specified connector. The creation will also connect the new pipe to the component who owns the specified connector. If necessary, additional fitting(s) are included to make a valid connection. If the new pipe can not be connected to the next component (e.g., mismatched direction, no valid fitting, and etc), the new pipe will still be created at the specified connector position, and an InvalidOperationException is thrown.
Overloads (3):
Create(Document,ElementId,ElementId,Connector,XYZ)
-
documentThe document.
-
pipeTypeIdThe ElementId of the new pipe type.
-
levelIdThe level id for the new pipe.
-
startConnectorThe first connector where the new pipe starts.
-
endPointThe second point of the new pipe.
Return Value
The pipe.
The pipe.
-
The pipe type pipeTypeId is not valid pipe type. -or- The ElementId levelId is not a Level. -or- The connector domain is not Domain.Piping. -or- The points of startConnector and endPoint are too close: for MEPCurve, the minimum length is 1/10 inch.
-
A non-optional argument was null
-
None of the following disciplines is enabled: Mechanical Electrical Piping.
-
Thrown when the new pipe fails to connect with the connector.