Conduit.Create
Description:
Creates a new instance of conduit.
Creates a new instance of conduit.
Remarks:
This method will regenerate the document.
This method will regenerate the document.
-
documentThe document.
-
conduitTypeThe conduit type. This must be a conduit type accepted by isValidConduitType(). If the input conduit type is InvalidElementId, the default conduit type from the document will be used.
-
startPointThe start point of the conduit location line.
-
endPointThe end point of the conduit location line.
-
levelIdThe element id of the level which this conduit based. If the input level id is invalidElementId = -1, the nearest level will be used.
-
This conduit type is invalid. -or- This level id is invalid. -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
-
None of the following disciplines is enabled: Mechanical Electrical Piping.
-
The document is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements).
-
The document is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements). -or- The document is being loaded, or is in the midst of another sensitive process.
-
The document has no open transaction.