RVTDocs.com
Namespace: Autodesk.Revit.DB Class: LabelUtils

LabelUtils.GetLabelForUnit

Method
Description:
Gets the user-visible name for a unit.
Remarks:
The name is obtained in the current Revit language.
Syntax
public static string GetLabelForUnit(
	ForgeTypeId unitTypeId
)
Parameters
Parameter Type Description
unitTypeId ForgeTypeId Identifier of the unit to get the user-visible name.
Return Value
Exceptions
Exception Condition
ArgumentException Cannot find DisplayUnitTypeInfo for the given unit identifier.
ArgumentNullException A non-optional argument was null