CurrentUnits Property


Stores the index in the array of applicable units

Namespace: Autodesk.Revit.DB.Analysis
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)
Since: 2012

Syntax

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

Remarks

Must be between 0 and (number of applicable units - 1)

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentOutOfRangeException When setting this property: currentUnits is not in the range from 0 to (number of applicable units - 1)

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 →