📄️ Introduction to Element Collectors
The Revit API provides powerful tools for interacting with and manipulating Revit models programmatically. One of the most fundamental operations is collecting elements from the model, which is primarily done using the FilteredElementCollector class.
📄️ Element Collection with FilteredElementCollector
In the context of Revit API for Dynamo, collectors are essential tools used to retrieve elements from a Revit document based on specific criteria. These collectors, known as FilteredElementCollector in the Revit API, allow users to filter elements by various parameters, such as category, type, parameter values, and more.
📄️ Category Types
In Revit API, categories and types are identified by enumerated values. Here's how you can work with them:
📄️ Basic Element Filters
The FilteredElementCollector class is the primary tool for collecting elements in Revit. To use it effectively, you need to apply specific filtering rules.
📄️ Element Conversion Methods
Overview
📄️ Basic Filter Examples
Filtering by Multiple Categories
📄️ Essential Quick Filters
Revit API provides several quick filters for common operations:
📄️ Filter by Element Class
Using OfClass Shortcut
📄️ Combining Quick Filters
Overview
📄️ Filter Family Symbols
Overview
📄️ Filter Multiple Classes
Overview
📄️ BoundingBox Tolerance
Overview
📄️ Elements Within BoundingBox
Overview
📄️ Elements Intersecting BoundingBox
Overview
📄️ Delete Unused ViewTemplate
This script is designed to run within the Revit environment using the Revit API, specifically to manage view templates. The script performs the following tasks:
📄️ Exclusive Filter
Overview
📄️ Filter by Current Design Option
Overview
📄️ Filter Intersecting Elements
Overview
📄️ Filter Selectable Items
Overview
📄️ Filter Space Tags
Overview
📄️ Filter by Family Instance
Overview
📄️ Filter by Level
Overview
📄️ Filter by Parameter Values
Overview
📄️ Filter by Workset
Overview
📄️ Filter Elements Controlled by Line
Overview
📄️ Filter Elements Visible in View
Overview
📄️ Filter View Dependent Elements
Annotative elements such as tags, dimensions, and filled regions depend on the "host" view and will be displayed only in that view. Model elements are independent and can be displayed in any view.
📄️ Filter by Design Options
Overview
📄️ Filter Types and Instances
Overview
📄️ Insertion Point Within BoundingBox
Overview
📄️ Labels
The LabelUtils class allows you to retrieve human-readable labels for various Revit parameters:
📄️ Logic Filters
Overview
📄️ Other FilteredElementCollector Methods
Overview
📄️ Slow Filters
Overview
📄️ Structural Element Filtering
Overview
📄️ Collecting Worksets
1. Introduction to Worksets