Revit 2026 API
PipeSet |
Updates the associated system type for the pipe.
Namespace: Autodesk.Revit.DB.Plumbing
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public void SetSystemType( ElementId systemTypeId )
Public Sub SetSystemType ( systemTypeId As ElementId )
public: void SetSystemType( ElementId^ systemTypeId )
member SetSystemType : systemTypeId : ElementId -> unit
Parameters
- systemTypeId ElementId
- The ElementId of the piping system type.
| Exception | Condition |
|---|---|
| ArgumentException | The systemTypeId is not valid piping system type. |
| ArgumentNullException | A non-optional argument was null |
If the pipe previously did not have a system associated to it, this will create a new system.
See Also