UnitUtils.GetUnitGroup
Description:
Gets the unit group for a given spec.
Gets the unit group for a given spec.
[ObsoleteAttribute("This method is deprecated in Revit 2022 and may be removed in a future version of Revit. Please use the `GetDiscipline(ForgeTypeId)` method instead.")]
public static UnitGroup GetUnitGroup(
ForgeTypeId specTypeId
)
-
specTypeIdIdentifier of the spec.
Return Value
The unit group.
The unit group.
-
specTypeId is not a measurable spec identifier. See UnitUtils.IsMeasurableSpec(ForgeTypeId).
-
A non-optional argument was null