Checks whether this FormatOptions is valid for a given spec.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public bool IsValidForSpec(
ForgeTypeId specTypeId
)
Parameters
- specTypeId ForgeTypeId
-
Identifier of the spec.
Return Value
Boolean
True if the FormatOptions is valid, false otherwise.
Exceptions
Remarks
The FormatOptions is valid if UseDefault is true or if the unit in
the FormatOptions is valid for the spec. See
UnitUtils.IsValidUnit(ForgeTypeId, ForgeTypeId) and
UnitUtils.GetValidUnits(ForgeTypeId).
See Also
Reference