Revit 2025.3 API
Piping |
Creates a new instance of a piping system and adds it to the document.
Namespace: Autodesk.Revit.DB.Plumbing
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public static PipingSystem Create( Document ADocument, ElementId typeId, string name )
Public Shared Function Create ( ADocument As Document, typeId As ElementId, name As String ) As PipingSystem
public: static PipingSystem^ Create( Document^ ADocument, ElementId^ typeId, String^ name )
static member Create : ADocument : Document * typeId : ElementId * name : string -> PipingSystem
Parameters
- ADocument Document
- The document where the element will be created and added.
- typeId ElementId
- The identifier of this piping system element's type.
- name String
- The name of the piping system to be created.
Return Value
PipingSystemThe newly created piping system element.
| Exception | Condition |
|---|---|
| ArgumentException | The typeId is not an element id for a valid piping system type. |
| ArgumentNullException | A non-optional argument was null |
See Also