Units.GetFormatOptions
Description:
Gets the default FormatOptions for a unit type.
Gets the default FormatOptions for a unit type.
Overloads (2):
GetFormatOptions(UnitType)
[ObsoleteAttribute("This method is deprecated in Revit 2021 and may be removed in a future version of Revit. Please use the `GetFormatOptions(ForgeTypeId)` overload instead.")]
public FormatOptions GetFormatOptions(
UnitType unitType
)
-
unitTypeThe unit type.
-
unitType is an invalid unit type. See UnitUtils.IsValidUnitType() and UnitUtils.GetValidUnitTypes().
-
A value passed for an enumeration argument is not a member of that enumeration