GetUnitsName Method


returns units name by index

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

Syntax

C#
public string GetUnitsName(
	int index
)
Visual Basic
Public Function GetUnitsName ( _
	index As Integer _
) As String
Visual C++
public:
String^ GetUnitsName(
	int index
)

Parameters

index
Type: System Int32
index of unit in the list

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 →