UnitUtils.GetValidDisplayUnits
Description:
Gets all valid display units for a given unit type.
Gets all valid display units for a given unit type.
Overloads (2):
GetValidDisplayUnits(UnitType)
[ObsoleteAttribute("This method is deprecated in Revit 2021 and may be removed in a future version of Revit. Please use the `GetValidUnits(ForgeTypeId)` method instead.")]
public static IList<DisplayUnitType> GetValidDisplayUnits(
UnitType unitType
)
-
unitTypeThe unit type.
-
unitType is an invalid unit type. See UnitUtils.IsValidUnitType() and UnitUtils.GetValidUnitTypes().
-
A value passed for an enumeration argument is not a member of that enumeration