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

FormatOptions.IsValidAccuracy(ForgeTypeId, Double)

Method
Description:
Checks whether an accuracy is valid for a given unit.
Remarks:
See the Accuracy property for details on valid accuracy values.
Syntax
public static bool IsValidAccuracy(
	ForgeTypeId unitTypeId,
	double accuracy
)
Parameters
Parameter Type Description
unitTypeId ForgeTypeId Identifier of the unit.
accuracy Double The accuracy to check.
Return Value
Type Description
Boolean True if the accuracy is valid, false otherwise.
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