UnitUtils.GetValidDisplayUnits
Description:
Gets all valid display units.
Gets all valid display units.
Remarks:
A display unit is considered valid if it is an actual unit like meters or feet. Obsolete values and the special values DUT_CUSTOM and DUT_UNDEFINED are not considered valid.
A display unit is considered valid if it is an actual unit like meters or feet. Obsolete values and the special values DUT_CUSTOM and DUT_UNDEFINED are not considered valid.
Overloads (2):
GetValidDisplayUnits
[ObsoleteAttribute("This method is deprecated in Revit 2021 and may be removed in a future version of Revit. Please use the `GetAllUnits()` method instead.")]
public static IList<DisplayUnitType> GetValidDisplayUnits()
IList<DisplayUnitType>
The valid display units.