OnDuty Property


The number of pieces of mechanical equipment operating in parallel at any given time.

Namespace: Autodesk.Revit.DB.Mechanical
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2019

Syntax

C#
public int OnDuty { get; set; }
Visual Basic
Public Property OnDuty As Integer
	Get
	Set
Visual C++
public:
property int OnDuty {
	int get ();
	void set (int value);
}

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException When setting this property: The number of on duty (number) must be less than or equal to the number of available equipments or there should be at least one equipment on duty.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →