RVTDocs.com
Namespace: Autodesk.Revit.DB.Plumbing Class: Pipe

Pipe.SetSystemType

Method
Description:
Updates the associated system type for the pipe.
Remarks:
If the pipe previously did not have a system associated to it, this will create a new system.
Syntax
public void SetSystemType(
	ElementId systemTypeId
)
Parameters
Parameter Type Description
systemTypeId ElementId The ElementId of the piping system type.
Return Value
Exceptions
Exception Condition
ArgumentException The systemTypeId is not valid piping system type.
ArgumentNullException A non-optional argument was null