IsLessThan Method


Checks if value1 is strictly less than value2, using the internal tolerance.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2021

Syntax

C#
public static bool IsLessThan(
	double value1,
	double value2
)
Visual Basic
Public Shared Function IsLessThan ( _
	value1 As Double, _
	value2 As Double _
) As Boolean
Visual C++
public:
static bool IsLessThan(
	double value1, 
	double value2
)

Parameters

value1
Type: SystemDouble
The first value.
value2
Type: SystemDouble
The second value.

Return Value

True if value1 is strictly less than value2, false otherwise.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException The given value for value1 is not finite -or- The given value for value2 is not finite

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →