LabelUtils.GetLabelFor
Description:
Gets the user-visible name for a UnitType.
Gets the user-visible name for a UnitType.
Remarks:
The name is obtained in the current Revit language.
The name is obtained in the current Revit language.
Overloads (12):
GetLabelFor(UnitType)
[ObsoleteAttribute("This method is deprecated in Revit 2021 and may be removed in a future version of Revit. Please use the `GetLabelForSpec(ForgeTypeId)` method instead.")]
public static string GetLabelFor(
UnitType unitType
)
-
unitTypeThe UnitType to get the user-visible name.
Return Value
string
-
Cannot find UnitTypeInfo for the UnitType.
-
A value passed for an enumeration argument is not a member of that enumeration