Message 1 of 2
How to filter some family instances which are displayed in my family document?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello. Maybe someone knows how to solve this problem. I need to copy some FamilyInstance from a familу document to another family document. Each family is associated with a Family Type. For example family type "245618 Top0" associated with family "Family8". Only geometry associated with the current family type is displayed in the document. But if I programmatically filter FamilyInstances,
ElementClassFilter classFilter = new ElementClassFilter(typeof(FamilyInstance));
FilteredElementCollector collector = new FilteredElementCollector(fdoc);
ICollection<FamilyInstance> familyInstanceElements = collector.WherePasses(classFilter).Cast<FamilyInstance>().ToList();
then they are all filtered and for all of them the same Family is set, the family which associated with the current Family Type. FamilyInstances are all visible programmatically. How to filter some family instances which are displayed in my family document?