RVTDocs.com
Namespace: Autodesk.Revit.DB Class: MEPSystem

MEPSystem.Add

Method
Description:
Add elements into the system and connect them with the system using given connectors.
Remarks:
Note: this method may not be called during dynamic update.
Syntax
public virtual void Add(
	ConnectorSet connectors
)
Parameters
Parameter Type Description
connectors ConnectorSet Connectors which are used to connect with the system.
Return Value
Exceptions
Exception Condition
ArgumentNullException Thrown when the input argument connectors is, or any connector in that collection is.
ArgumentException Throw when any of the input connectors have been already used, or when they don't share the same domain or system type as the system.
InvalidOperationException Thrown when the operation failed.
ForbiddenForDynamicUpdateException Thrown if this method is called during dynamic update.