Message 1 of 8
collecting Instance parameters of a Family
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everybody!
I understand from some of the threads here that using FiteredElementCollector with "TYPEOF(FAMILYINSTANCE)" will
collect instance parameters of family ONLY if they are present in the model.
I need to collect these properties for Families that are present in Project but I haven't used them in the model.
this code(part of a method that receives a Family f) returns nothing because there are no instances of family in the model yet:
ElementClassFilter instancecollector = new ElementClassFilter(typeof(FamilyInstance));
FilteredElementCollector familyinstance = new FilteredElementCollector(doc);
List<FamilyInstance> finstance = familyinstance.WherePasses(instancecollector)
.Cast<FamilyInstance>()
.Where(x => x.Symbol.Family.Name.Equals(f.Name))
.ToList();
This is part of a cleanup I am doing on office's families.
How can I achieve this?