LessThan Operator


Determines whether this element id is less than another element id.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)

Syntax

C#
public static bool operator <(
	ElementId elementId1,
	ElementId elementId2
)
Visual Basic
Public Shared Operator < ( _
	elementId1 As ElementId, _
	elementId2 As ElementId _
) As Boolean
Visual C++
public:
static bool operator <(
	ElementId^ elementId1, 
	ElementId^ elementId2
)

Parameters

elementId1
Type: Autodesk.Revit.DB ElementId
The first ElementId.
elementId2
Type: Autodesk.Revit.DB ElementId
The second ElementId.

Return Value

True if the first element id is less than the second element id, otherwise, false.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →