- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, ElementIntersectsElementFilter does not run familyInstance
It was successful in Element.
Below is the code.
Is there any other way?
Element ele = doc.GetElement(elementId);
//FamilyInstance insideElement = ele as FamilyInstance;
ElementIntersectsElementFilter elementIntersectsElementFilter = new ElementIntersectsElementFilter(ele);
var filters = new FilteredElementCollector(doc)
.WherePasses(elementIntersectsElementFilter)
.ToList();
------------------------------------------------------------------------------------------------------
I added an explanation.
The current goal is to review the selected ducts and ducts, the selected ducts and fittings, the selected fittings and ducts, and the interference between the selected fittings and fittings.
The current version is the 2019 version.
I would like to conduct an interference review.
For example, in the case of the first photo,
There's a duct called 'a' and a duct called 'b'.
Element ele = doc.GetElement('a');
ElementIntersectsElementFilter elementIntersectsElementFilter = new ElementIntersectsElementFilter(ele);
var filters = new FilteredElementCollector(doc)
.WherePasses(elementIntersectsElementFilter)
.ToList();
The value of the filter is 'b'.
There is no problem so far.
This is a problem when a family instance (Duct fitting) called c is added.
Element ele = doc.GetElement('a');
ElementIntersectsElementFilter elementIntersectsElementFilter = new ElementIntersectsElementFilter(ele);
var filters = new FilteredElementCollector(doc)
.WherePasses(elementIntersectsElementFilter)
.ToList();
The filter has a value of b but not a value of c.
When Duct fitting,I will find other ways.
My English was weak, so I used a translator.
Please excuse me..
Solved! Go to Solution.