How do we get all Revit User Interface Project Browser's Families ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
It is very confusing that the Family Class represents only the custom families.
Below are the Categories from an out of the box Revit Construction Template, showing which of them are associated to the Family Class elements.
How can I use a Filter Element Collector to get the rest of the above Project Browser's Families (System Families), such as ceiling, walls etc ?
The Revit API Family Class Documentation explains that it represents only custom families and not system Revit Families. Why is that?? - If that is how the family is defined why those are still called families in Revit User Browser Interface? This seems to be concussing.
Below the code I used, to picks the project Browser families. Is there any way to modify the following code and get all families shown in the Revit User Interface Project Browser?
Document doc = commandData.Application.ActiveUIDocument.Document;
FilteredElementCollector ElementCollector = new FilteredElementCollector(doc);
ElementClassFilter FamilyFilter = new ElementClassFilter(typeof(Family));
ElementCollector.WherePasses(FamilyFilter);
foreach (Element i in ElementCollector)
{
Debug.Print((i as Autodesk.Revit.DB.Family).FamilyCategory.Name);
}
Any advice will be really appreciated.
Regards,
Alexandros