Message 1 of 2
Get family types collection as project browser

Not applicable
02-01-2019
04:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi.
I need to get all types as listed in the project browser.
I use the next source code:
var types = new FilteredElementCollector(document).WhereElementIsElementType().Where(e=>((ElementType)e).Category != null).ToList();
However, the returned list contains more types that the showed in the project browser (see attached images).
What filter must I use to get the same list?