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

FormatOptions.SetUnitTypeId

Method
Description:
Sets the unit used to quantify values.
Syntax
public FormatOptions SetUnitTypeId(
	ForgeTypeId unitTypeId
)
Parameters
Parameter Type Description
unitTypeId ForgeTypeId The unit identifier.
Return Value
Exceptions
Exception Condition
ArgumentException unitTypeId is not a unit identifier. See UnitUtils.IsUnit(ForgeTypeId) and UnitUtils.GetUnitTypeId(DisplayUnitType).
ArgumentNullException A non-optional argument was null
InvalidOperationException UseDefault is true in this FormatOptions.