UnitUtils.GetSpecTypeId
Description:
Gets the ForgeTypeId identifying the spec corresponding to the given unit type.
Gets the ForgeTypeId identifying the spec corresponding to the given unit type.
[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 ForgeTypeId GetSpecTypeId(
UnitType unitTypeEnum
)
-
unitTypeEnumThe unit type.
-
A value passed for an enumeration argument is not a member of that enumeration