SetSystemType Method


Updates the associated system type for the duct.

Namespace: Autodesk.Revit.DB.Mechanical
Assembly: RevitAPI (in RevitAPI.dll) Version: 17.0.0.0 (17.0.1090.0)
Since: 2017

Syntax

C#
public void SetSystemType(
	ElementId systemTypeId
)
Visual Basic
Public Sub SetSystemType ( _
	systemTypeId As ElementId _
)
Visual C++
public:
void SetSystemType(
	ElementId^ systemTypeId
)

Parameters

systemTypeId
Type: Autodesk.Revit.DB ElementId
The ElementId of the hvac system type.

Remarks

If the duct previously did not have a system associated to it, this will create a new system.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentException The systemTypeId is not valid HVAC system type.
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was NULL
Autodesk.Revit.Exceptions DisabledDisciplineException None of the following disciplines is enabled: Mechanical Electrical Piping.

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →