RVTDocs.com
Namespace: Autodesk.Revit.DB Class: UnitUtils

UnitUtils.GetValidUnits

Method
Description:
Gets the identifiers of all valid units for a given measurable spec.
Syntax
public static IList<ForgeTypeId> GetValidUnits(
	ForgeTypeId specTypeId
)
Parameters
Parameter Type Description
specTypeId ForgeTypeId Identifier of the measurable spec.
Return Value
Type Description
IList Identifiers of the valid units.
Exceptions
Exception Condition
ArgumentException specTypeId is not a measurable spec identifier. See UnitUtils.IsMeasurableSpec(ForgeTypeId).
ArgumentNullException A non-optional argument was null