Revit 2017.1 API |
GlobalParameter..::..IsValidFormula Method |
GlobalParameter Class See Also |
Tests that the given expression is a valid as formula for this parameter.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 17.0.0.0 (17.0.1090.0)
Since:
2016 Subscription Update
Syntax
C# |
---|
public bool IsValidFormula( string expression ) |
Visual Basic |
---|
Public Function IsValidFormula ( _ expression As String _ ) As Boolean |
Visual C++ |
---|
public: bool IsValidFormula( String^ expression ) |
Parameters
- expression
- Type: System..::..String
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.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was NULL |