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
- [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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Classifying elements5m 22s
-
Retrieving element information6m 39s
-
FilteredElementCollector3m 7s
-
Creating a collector7m 28s
-
Transactions2m 47s
-
Modifying elements5m 30s
-
Creating families7m 54s
-
Querying FilteredElementCollector5m 7s
-
Creating line-based elements6m 55s
-
Creating loop elements5m 59s
-
Get parameter6m 3s
-
Parameter values4m 45s
-
-
-
-
-