Projects a ray from the origin along the given direction, and returns the nearest reference from intersected elements which match the ReferenceIntersector's criteria.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public ReferenceWithContext FindNearest( XYZ origin, XYZ direction )
Parameters
Return Value
ReferenceWithContextThe intersected reference nearest to the ray origin, null if none is found
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | A non-optional argument was null |
