Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get elements at the specified location

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
1240904365
470 Views, 2 Replies

How to get elements at the specified location

I try solidFittingfilter.WherePasses(new BoundingBoxIntersectsFilter(new Outline(wall.get_BoundingBox(activeView).Min, wall.get_BoundingBox(activeView).Max))); to check if there are some elements have same location  as wall but it's slow

2 REPLIES 2
Message 2 of 3
jeremytammik
in reply to: 1240904365

That sounds like a sensible approach to me.

  

The bounding box intersects filter is a quick filter, so it should be fast, as long as you are examining less than several hundred thousand elements:

 

http://thebuildingcoder.typepad.com/blog/2015/12/quick-slow-and-linq-element-filtering.html

  

  



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 3
1240904365
in reply to: jeremytammik

get_BoundingBox(activeView)  need to run 600ms which cause program slow,i cannot found other way to slove it.thanks anyway.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report