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

UnitUtils.IsUnit

Method
Description:
Checks whether a ForgeTypeId identifies a unit.
Remarks:
The UnitTypeId class offers unit identifiers.
Syntax
public static bool IsUnit(
	ForgeTypeId unitTypeId
)
Parameters
Parameter Type Description
unitTypeId ForgeTypeId The identifier to check.
Return Value
Type Description
Boolean True if the ForgeTypeId identifies a unit, false otherwise.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null