Document.NewPipingSystem
Description:
Creates a new MEP piping system element.
Creates a new MEP piping system element.
Remarks:
This method will regenerate the document even in manual regeneration mode.
This method will regenerate the document even in manual regeneration mode.
public PipingSystem NewPipingSystem(
Connector baseEquipmentConnector,
ConnectorSet connectors,
PipeSystemType pipingSystemType
)
-
baseEquipmentConnectorOne connector within base equipment which is used to connect with the system. The base equipment is optional for the system, so this argument may be nulla null reference (Nothing in Visual Basic). The baseEquipmentConnector should not be included in the connectors.
-
connectorsConnectors that will connect to the system. The owner elements of these connectors will be added into system as its elements.
-
pipingSystemTypeThe System type.
Return Value
PipingSystem
If creation was successful then an instance of piping system is returned,
otherwise an exception with information will be thrown.
-
Thrown when calling this function outside of the Autodesk Revit MEP product.
-
Thrown when the connectors parameter value isnullNothingnullptra null reference (Nothingin Visual Basic).
-
Thrown when the pipingSystemType parameter value is out of permitted scope.
-
Thrown when some connectors can't be used to create the mechanical system. All the input connectors and base equipment connector should match system type and domain with the system, and they should not have been used in another system.
-
Thrown when the piping system creation failed.