Duct.Create
Description:
Creates a new duct that connects to two connectors.
Creates a new duct that connects to two connectors.
Remarks:
The new duct will have the same diameter and system type as the start connector. The creation will also connect the new duct to two component who owns the specified connectors. If necessary, additional fitting(s) are included to make a valid connection. If the new duct can not be connected to the next component (e.g., mismatched direction, no valid fitting, and etc), the new duct will still be created at the specified connector position, and an InvalidOperationException is thrown.
The new duct will have the same diameter and system type as the start connector. The creation will also connect the new duct to two component who owns the specified connectors. If necessary, additional fitting(s) are included to make a valid connection. If the new duct can not be connected to the next component (e.g., mismatched direction, no valid fitting, and etc), the new duct will still be created at the specified connector position, and an InvalidOperationException is thrown.
Overloads (3):
Create(Document,ElementId,ElementId,Connector,Connector)
-
documentThe document.
-
ductTypeIdThe ElementId of the new duct type.
-
levelIdThe level ElementId for the new duct.
-
startConnectorThe first connector where the new duct starts.
-
endConnectorThe second point of the new duct.
-
The duct type ductTypeId is not valid duct type. -or- The ElementId levelId is not a Level. -or- The connector's domain is not Domain.​DomainHvac. -or- The points of startConnector and endConnector are too close: for MEPCurve, the minimum length is 1/10 inch.
-
A non-optional argument was null
-
Thrown when the new duct fails to connect with the connector.