What is the difference "ElementIntersectsSolidFilter()" vs "Solid to Solids from Elements"

What is the difference "ElementIntersectsSolidFilter()" vs "Solid to Solids from Elements"

sahin.ikbal
Advocate Advocate
437 Views
2 Replies
Message 1 of 3

What is the difference "ElementIntersectsSolidFilter()" vs "Solid to Solids from Elements"

sahin.ikbal
Advocate
Advocate

I have generated A solid with which I want to check if any other elements is clashing with that solid.
I know I can get it done through extracting solids from every element than using BooleanOperationsUtils to check for intersection.
I want to know does ElementIntersectsSolidFilter() do this job same previous one?
If different than how?

0 Likes
438 Views
2 Replies
Replies (2)
Message 2 of 3

jeremy_tammik
Alumni
Alumni

I believe the results will be the same.

 

Please test this hypothesis and let us know the result.

 

If the solids are coming directly from the elements themselves, then using the element intersection filter might be slightly more efficient, because you save the performance hit of exporting the solid information from the Revit memory space to your .NET add-in. 

 

When filtering for elements, you should always be aware of the differences between quick and slow filters, and the slower still post-processing of results in .NET.

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 3 of 3

sahin.ikbal
Advocate
Advocate

@jeremy_tammik 

"Please test this hypothesis and let us know the result"

Wish someone else had confirmed it for me😁.

 

From the small number of testing I have done it's giving similar results so I'm assuming both are same.

0 Likes