Pipe.SetSystemType Method

PipeSetSystemType Method

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.
Exceptions
ExceptionCondition
ArgumentException The systemTypeId is not valid piping system type.
ArgumentNullException A non-optional argument was null
Remarks
If the pipe previously did not have a system associated to it, this will create a new system.
See Also