Places caps on the open connectors of the pipe curve, pipe fitting or pipe accessory.
Namespace: Autodesk.Revit.DB.Plumbing
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public static void PlaceCapOnOpenEnds( Document document, ElementId elemId, ElementId typeId )
Parameters
- document Document
- The document.
- elemId ElementId
- Element id of pipe curve, pipe fitting or pipe accessory.
- typeId ElementId
- Pipe type element id. Default is invalidElementId.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The element elemId does not exist in the document -or- The element elemId is neither an object of pipe curve, pipe fitting, nor pipe accessory. -or- The element elemId has no opened piping connector. |
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | this operation failed. |