Message 1 of 2
ReferenceIntersector return distance

Not applicable
03-20-2016
12:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm experimenting with ReferenceIntersector and I don't understand the problem i'm having with distance. I'm filtering for columns and If I use 'referenceIntersector.Find' it returns a list of columns intersecting along the direction. But if I use 'referenceIntersector.FindNearest' I can only get a column if it's less than 1'-6" away. What am I missing or what should I be looking for? My start and direction XYZ are both (0,0,0).
ElementFilter columnFilter = new ElementCategoryFilter(BuiltInCategory.OST_StructuralColumns); ReferenceIntersector referenceIntersector = new ReferenceIntersector(columnFilter, FindReferenceTarget.Element, view3D); ReferenceWithContext referenceWithContext = referenceIntersector.FindNearest(_rayStart, _rayDirection);