UnitUtils.GetTypeCatalogString
Description:
Gets the string used in type catalogs to identify a given display unit.
Gets the string used in type catalogs to identify a given display unit.
Overloads (2):
GetTypeCatalogString(DisplayUnitType)
[ObsoleteAttribute("This method is deprecated in Revit 2021 and may be removed in a future version of Revit. Please use the `GetTypeCatalogStringForUnit(ForgeTypeId)` method instead.")]
public static string GetTypeCatalogString(
DisplayUnitType displayUnit
)
-
displayUnitThe display unit.
Return Value
string
The type catalog string, or an empty string if the display unit cannot be used in type catalogs.
-
A value passed for an enumeration argument is not a member of that enumeration