IsValidCustomSpacingFormula Method


Rebar Is Valid Custom Spacing Formula Method

Checks if the specified formula is valid (has a valid syntax).

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public static bool IsValidCustomSpacingFormula(
	Document document,
	string formula
)

Parameters

document Document
A document.
formula String
The formula to check.

Return Value

Boolean
Returns true if the specified formula is valid (has a valid syntax), false otherwise.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →