UnitUtils.GetDisplayUnitType
Description:
Gets the DisplayUnitType value corresponding to the given unit identifier.
Gets the DisplayUnitType value corresponding to the given unit identifier.
[ObsoleteAttribute("This method is deprecated in Revit 2021 and may be removed in a future version of Revit. It will not be replaced, but until its removal it may be used to help migrate code that uses the `DisplayUnitType` enumeration to the `ForgeTypeId` class.")]
public static DisplayUnitType GetDisplayUnitType(
ForgeTypeId unitTypeId
)
-
unitTypeIdThe unit identifier.
-
unitTypeId is not a unit identifier. See UnitUtils.IsUnit(ForgeTypeId) and UnitUtils.GetUnitTypeId(DisplayUnitType).
-
A non-optional argument was NULL