IsValidFormula
Method
Description:
Tests that the given expression is a valid as formula for this parameter.
Tests that the given expression is a valid as formula for this parameter.
Remarks:
Use this method to test validity of a formula before assigning it to a global parameter when in doubt whether it is an acceptable expression or not.
Use this method to test validity of a formula before assigning it to a global parameter when in doubt whether it is an acceptable expression or not.
Syntax
public bool IsValidFormula(
string expression
)
Parameters
| Parameter | Type | Description |
|---|---|---|
| expression | System.String |
Return Value
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions.ArgumentNullException | A non-optional argument was null |