PlumbingUtils.BreakCurve
Method
Description:
Breaks the pipe curve into two parts at the given position.
Breaks the pipe curve into two parts at the given position.
Remarks:
This method is not applicable for breaking the flex pipe.
This method is not applicable for breaking the flex pipe.
Parameters
Parameter | Type | Description |
---|---|---|
document | Document | The document. |
pipeId | ElementId | The element id of the pipe curve to break. |
ptBreak | XYZ | The break point on the pipe curve. |
Return Value
Type | Description |
---|---|
ElementId | The new pipe curve element id if successful otherwise if a failure occurred an invalidElementId is returned. |
Exceptions
Exception | Condition |
---|---|
ArgumentException | "The element is neither a pipe nor a pipe placeholder." -or- "The given point is not on the pipe curve." |
ArgumentNullException | A non-optional argument was null |