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: 

Getting elements passing through opening

1 REPLY 1
Reply
Message 1 of 2
ameer.mansourWAK8Y
319 Views, 1 Reply

Getting elements passing through opening

 

is it possible to get elements passing through openings?
if yes, how to get point of intersection with the opening as if there is an object that represents the opening.
do I have to create an object to substitute the opening and get my result? is there other cleaner way?

2020-10-05_10-01-17.png

1 REPLY 1
Message 2 of 2

The first approach that comes to mind is to create a temporary in-memory solid representing the opening geometry.

  

You can use that solid to define an intersection filter and retrieve all elements that clash with that.

  

The Building Coder discussion on using an intersection filter for linked elements shows you all the required steps and more besides: 

 

https://thebuildingcoder.typepad.com/blog/2018/12/using-an-intersection-filter-for-linked-elements.h...

 

One way to detect the exact intersection surfaces where the clashing element enters and exits the opening geometry would be to project its geometry onto the front and back opening surfaces an use a 2D Boolean operation on that:

 

https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.2

 

You can probably also achieve the same using the ExtrusionAnalyzer class:

 

https://www.revitapidocs.com/2019/ba9e3283-6868-8834-e8bf-2ea9e7358930.htm

 



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

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

Post to forums  

Rail Community


Autodesk Design & Make Report