How to use the ElementIntersectsElementFilter from the RevitLinkInstance?

Not applicable
12-02-2018
11:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dear All,
I need to get the MEP elements which from a linked file and intersect with some structural elements in current project.
I have try the ElementIntersectsElementFilter or the ElementIntersectsSolidFilter, if there is no transform between the RevitLinkInstance and the current project. The filters are both works fine. But if the RevitLinkInstance be moved or rotated after importing, the calculation result of the filters are not correct.
So is that have any tricks can solve the case like that? For example,a method for pass a transform to the filter in the transaction. If no, please share a good algorithm to get the intersection result between two solid elements.