From the course: Revit: Creating C# Plugins

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

FilteredElementCollector

FilteredElementCollector

From the course: Revit: Creating C# Plugins

Start my 1-month free trial

FilteredElementCollector

- [Instructor] Using the Revit API, we can filter for elements in a Revit project by creating what's known as a filtered element collector and applying different filters to it. A FilteredElementCollector object, when created, is created to search through all elements in a project. A FilteredElementCollector can be constructed in three different ways: by searching the entire Revit document, searching through a specific set of elements, or searching a specific view. Once a filtered element collector has collected all the elements in one of these different ways, we then need to apply a filter to reduce the element set we are searching. In fact, when creating a filtered element collector, it requires at least one filter before we can start accessing the elements. As an element passes through the collector, the filter is used to check if it meets certain criteria, depending on what the filter is. For example, checking if an element is of a certain category or family type. There are three…

Contents