Revit 2025 API
Formula |
Validates the formuls
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public static string Validate( ElementId parameterId, Document document, string formula )
Public Shared Function Validate ( parameterId As ElementId, document As Document, formula As String ) As String
public: static String^ Validate( ElementId^ parameterId, Document^ document, String^ formula )
static member Validate : parameterId : ElementId * document : Document * formula : string -> string
Parameters
Return Value
String
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |

It validates formula using list of global or family parameters depends on document type.
See Also