Revit 2026 API
Filter |
Derived classes override this method to implement the test that determines
whether the two given double-precision values satisfy the desired condition or not.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public bool Evaluate( double lhs, double rhs, double epsilon )
Public Function Evaluate ( lhs As Double, rhs As Double, epsilon As Double ) As Boolean
public: bool Evaluate( double lhs, double rhs, double epsilon )
member Evaluate : lhs : float * rhs : float * epsilon : float -> bool
Parameters
- lhs Double
- A value from an element in the document.
- rhs Double
- The user-supplied value against which values from the document are tested.
- epsilon Double
- Defines the tolerance within which two values may be considered equal.
Return Value
BooleanTrue if the given arguments satisfy the condition, otherwise false.

Exception | Condition |
---|---|
ArgumentException | The given value for lhs is not finite -or- The given value for lhs is not a number -or- The given value for rhs is not finite -or- The given value for rhs is not a number -or- The given value for epsilon is not finite -or- The given value for epsilon is not a number |

The arguments may be thought of as the left and right operands of a
binary expression; for example, "a < b", "x >= 100", etc. The left
operand comes from an element in the Revit document (e.g., the value
of a parameter.) The right operand is supplied by the user when
creating the filter that contains the rule that uses this evaluator.
See Also