<Code Lib>
2021 Method
Changes 8
M

UnitUtils.IsValidDisplayUnit(DisplayUnitType)

Description:
Checks whether a display unit is valid.
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.
Overloads (2):
IsValidDisplayUnit(DisplayUnitType)

[ObsoleteAttribute("This method is deprecated in Revit 2021 and may be removed in a future version of Revit. Please use the `IsUnit(ForgeTypeId)` method instead.")]
public static bool IsValidDisplayUnit(
	DisplayUnitType displayUnitEnum
)

Return Value bool True if the display unit is valid, false otherwise.

Loading…