Skip to content

UnitUtils

Public Class

A utility class of functions related to units.

Inheritance Hierarchy

System.Object
Autodesk.Revit.DB.UnitUtils

Namespace: Autodesk.Revit.DB

Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)

Syntax

public static class UnitUtils

The UnitUtils type exposes the following members.

Methods

Name

Description


Public Method
Static Member

Converts a value from one unit to another, such as square feet to square meters.


Public Method
Static Member

Converts a value from Revit’s internal units to a given unit.


Public Method
Static Member

Converts a value from a given unit to Revit’s internal units.


Public Method
Static Member

Gets the identifiers of all available disciplines.


Public Method
Static Member

Gets the identifiers of all available measurable specs.


Public Method
Static Member

Gets the identifiers of all available units.


Public Method
Static Member

Gets the discipline for a given measurable spec.


Public Method
Static Member

Gets the string used in type catalogs to identify a given measurable spec.


Public Method
Static Member

Gets the string used in type catalogs to identify a given unit.


Public Method
Static Member

Gets the identifiers of all valid units for a given measurable spec.


Public Method
Static Member

Checks whether a ForgeTypeId identifies a spec associated with units of measurement.


Public Method
Static Member
IsSymbol

Checks whether a ForgeTypeId identifies a symbol.


Public Method
Static Member
IsUnit

Checks whether a ForgeTypeId identifies a unit.


Public Method
Static Member

Checks whether a unit is valid for a given measurable spec.