UnitUtils.GetUnitType
Description:
Gets the UnitType value corresponding to the given spec identifier.
Gets the UnitType value corresponding to the given spec 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 `UnitType` enumeration to the `ForgeTypeId` class.")]
public static UnitType GetUnitType(
ForgeTypeId specTypeId
)
-
specTypeIdThe spec identifier.
-
specTypeId is not a spec identifier. See UnitUtils.IsSpec(ForgeTypeId) and UnitUtils.GetSpecTypeId(UnitType).
-
A non-optional argument was NULL