LabelUtils.GetLabelForUnit
Method
Description:
Gets the user-visible name for a unit.
Gets the user-visible name for a unit.
Remarks:
The name is obtained in the current Revit language.
The name is obtained in the current Revit language.
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 |