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.

Filters

Filters

From the course: Revit: Creating C# Plugins

Start my 1-month free trial

Filters

- [Instructor] Filters can be applied, using the parameter filter element class or selection filter element class. Selection filter element class is used to apply filters to a group of selected elements. However, the parameter filter element class is rule based, that means we can filter by parameter rules. As we want to filter for the view name of sections, let's use the parameter filter element class. This has three different constructive methods. One will filter the categories, the second for categories and then element filter and the last for categories and a list of filter rules. We just want one rule. So let's use the one that takes an element filter. The categories we can use the section category to collect all the sections in a view. For the rule, we need to create an element parameter filter object, this allows us to apply filters to elements. The element parameter filter object can be created with constructive methods. The first of which simply takes a filter rule. This is…

Contents