Get all elements of category in view?

Is there a node or a fast way to get every element of a category in a view?

This works but is not efficient:

There’s a node in Archi-lab that does just that:

3 Likes

Perfect and fast!

Does this work for filled regions?

Only one way to find out right?

2 Likes

FilteredElementCollector(doc, view.Id).WhereElementIsNotElementType().ToElements()

No package needed, works like a charm