Skip to main content

Context filter

Context filter
Show in Revit

Several Revit applications are running. Choose one:

Attention! The plugin is purchased for the specified version of Revit!
$7.20
Discount system: 0%
Discount system
Name Discount Total value of individual orders Total value of corporate orders
Regular user 0%
3% discount 3% $84 $180
5% discount 5% $120 $360
7% discount 7% $180 $600
10% discount 10% $300 $900
15% discount 15% $360 $1 200
Partners 30%
BIM Consulting 50%
Super VIP 100%
A subscription is your best choice. Find out why!
To use the purchased license, use the Personal Area of the ModPlus software installed on your computer
Filtering elements by parameters via context menu

Icon

mprContextFilter_32x32 mprContextFilter_16x16 mprContextFilter_32x32_dark mprContextFilter_16x16_dark

Related news and articles


Using

The context filter can operate in two modes: the context filter and its window mode.

To launch the context filter, use the "Context Filter" command in the ribbon on the ModPlus tab:

1

Specify one of three options for calling the context filter dialog:

  • By left-clicking the mouse while holding down the Ctrl key. In this case, there may be some restrictions on working in Revit associated with the use of this combination of buttons. For example, when you try to add other elements to the set of selected items.
  • By successive pressing of the indicated keys. The default sequence is "F, F". The time interval between keystrokes is not taken into account. When specifying a sequence, consider the assigned Revit hotkeys.
  • By pressing the specified key combination. The default key combination is "Shift + F". When specifying a different combination, consider existing combinations (Ctrl + C, Ctrl + V and others)

You can use the same method to close the filter window as you did when calling it.

An option is available below that allows you not to close the filter after applying an action.

You can enable automatic launch of the context filter when loading Revit by checking the corresponding checkbox.

The filter only starts if the current Revit window is active!

To launch the window mode of the context filter, select the "Filter. Window mode" command in the ribbon on the ModPlus tab.


The main dialog of the context filter in both modes is divided into three zones:

2

From left to right:

  • The first zone contains a list of context for data collection and a list of presets (described later).
  • The second zone contains a list of parameter values for elements grouped by categories of elements in the current context.
  • The third zone contains a list of marked parameter values (filter list), list controls, and filter application elements.
3 – closes the context filter dialog.
12 – allows you to drag the filter around the screen.

The context for data collection may be: all model elements, all elements in view, selected elements, filters of the current document. If no elements were selected at the start of the filter, then the context Selected elements does not appear in the list. If there are no elements in the current view when starting the filter, then the context All elements in view does not appear in the list.

The context All by selected works as follows. If the filter was run when there are selected elements, the tree will display the categories of the selected elements, but all elements in the model will be processed.

When you switch to the context By filter on view, a drop-down list with all filters of the current document becomes available:

12

Selecting a filter on the current view will search for items by this filter, and the category tree will be filled with search results.

Only in window mode the contexts Found on view and Found in model are available, which process the items found using Elements filter:

13

The list in the second zone is initially filled only with categories of elements for the selected context. In this regard, the search in the upper zone of the list only works for categories.

Parameter filter – only parameters whose name contains the value specified in the filter will be displayed in the tree:

5

If values were entered in the Category search and/or Parameter filter fields when the plugin window was closed, they are saved and can be restored the next time the plugin is launched using the restore button located to the right of the corresponding field.

When the option Dynamic selection is checked and the positions in the tree are selected, the corresponding elements in the model will be selected. If a category is selected, then all elements of the category will be selected, if a parameter value is selected, then all elements with this value. Added an increased indentation to the tree elements to the left of the checkboxes - an indentation has been added for the ability to select a position in the tree, since when you click on the checkbox with the mouse, the position itself is not selected.

When you select a category from the list, the parameters of all elements of this category are collected. In this case, the total number of elements in this category appears in front of the category name. Type parameters in the list are displayed with a "t", shared parameters are displayed with an "s".

By clicking on a parameter, all values of this parameter are collected. The number to the left of the parameter value indicates how many elements with that value were found.

When you check the parameter value, this parameter is added to the list in the third zone. Checking the box adds all parameter values to the list in the third zone.

All values in the second list are filled in alphabetical order.

The checkbox multiple marked circle outline and checkbox multiple blank circle outline buttons allow you to select all categories or clear the selection of all categories, respectively. The arrow collapse button collapses all expanded categories in the tree.

If the filter window is open after you finish your search, the category lists will dynamically update when you switch between views or documents, or when you change the selection of elements.

In the category tree, a checkbox is available to the right of each category. If you check this checkbox for more than one category, the Same parameters zone will appear at the bottom:

14

In this zone a list of parameters that occur in all selected categories is available. For each such parameter there will be available the values, which are also available for all selected categories. If you click on a parameter name, the number of the same parameter values for the selected categories will be displayed in front of the name. In this way you can search for elements of different categories with the same value of the same parameter.

The "AND" and "OR" conditions determine how the checked parameter values are used when filtering elements in the third zone.If "OR" is selected, the results include elements that match at least one of the checked values. If "AND" is selected, an element must meet the conditions for all parameters for which values are checked. If multiple values are checked for the same parameter, matching any one of them is sufficient.

For example, if "Rebar Grade" → A500C and "Diameter" → 10, 12, 16 are checked, with the "OR" condition the results will include elements of grade A500C as well as elements of any grade with a diameter of 10, 12, or 16. With the "AND" condition, only elements of grade A500C with a diameter of 10, 12, or 16 will be selected.

The conditions are applied separately to each category because the set of available parameters may differ between categories. Instance and type parameters with the same name are treated as different parameters.

You can apply one of the following actions to the list in the third zone:

8 – select all elements.
11 – remove all checked elements from the current selection. This action is available only if the elements were selected at the start of the filter.
9 – isolate all elements in the current view.
10 – isolate all elements in the current form, except for filtered ones (inversion isolation).

The following controls are available to the right of the third list:

6 – clear the entire current list for filtering.
7 – save the current filter list as a new preset or change the current preset. When you click on the button, a dialog appears:

3

The dialog contains two fields - the name of the preset (required) and the description of the preset (optional). If the current filter list is obtained by applying a previously saved preset, then in this dialog the name and description of the applied preset will be filled in and the Save as new checkbox will appear. If the Without values option is enabled, only the categories and parameter names will be saved in the preset for later selection of all parameter values.

When saving a preset in the first zone, a list of presets appears:

4

Presets allow you to save filtering conditions for their subsequent quick re-use.

The name and description of the preset are displayed in a tooltip when you hover over the preset in the list. no parameter appears before the name of a preset saved with the Without values option enabled.

The list of presets can be saved on the ModPlus server through the Backup Settings section in the Personal Account.

ModPlus YouTube
New
Added the "[No parameter]" value, which allows selecting the elements of a category that do not have the specified parameter
Improved
Fixed some interface issues
New
Added the ability to resize the "Same parameters" area
New
Added the "Check all categories" and "Uncheck all categories" buttons
New
Added the ability to reinsert the last entered value in the search box
Improved
The logic of the "And"/"Or" filters was changed. A tooltip describing this logic was added
Fix
Fixed an error that could occur when closing Revit with the plugin open
Fix
Fixed an error in which the wrong shared parameter could be selected when loading a preset
Fix
Fixed an error in which the category list of the current view was not updated when switching views
New
In window mode, the ability to collapse the window contents was added
New
Local logging was added
New
Added tracking of the time between key presses when opening the filter with a keyboard shortcut
Fix
Fixed several errors that could cause projects to load slowly
Improved
Search by category and filter by parameters when the context of element selection changes, if the corresponding search and filter values are entered
Fix
Taking the system type name into account when comparing categories
Fix
Fixed a bug where it was not taken into account that a parameter was related to a type when saving presets (the change is only taken into account in presets created after an update)
Improved
Returned the ability to launch the context filter in group and assembly editing mode
New
Added the ability to select all elements in a category
Fix
Fixed errors when working with presets related to processing elements without a category
New
Adding a button to the standard Revit "Selection" panel
New
Added processing of elements without category
New
Disabling dynamic selection when the "Selected Elements" context is selected
Improved
Using the ModPlus.Xaml.Behaviors.Wpf.dll library instead of Microsoft.Xaml.Behaviors.dll to resolve compatibility issues with other plugins
Improved
Added checking that Revit is in text note or model text editing mode
Improved
Added tooltip with parameter value in parameter tree
Fix
Fixed a bug where the preset search did not work
Improved
Added tooltip with parameter name in parameter tree
Fix
Fixed a bug where unnecessary parameters could be added to the "Same parameters" list in certain conditions
Improved
Added display of the number of values of same parameters
New
Added window mode
New
Added context for searching elements by view filters on the current view
New
Added context for searching elements by ModPlus filters on the current view and in the model (only in window mode).
New
Added ability to search for the same parameters with the same values for multiple categories
New
Added ability to save presets without parameter values
Improved
Added check if the group, assembly, or sketch editing mode is active before launching the context filter
Improved
Expanded the list of view types on which the context filter does not run
Improved
Removed support for Revit 2017-2018
Fix
Fixed design in dark design theme
New
Removed plugin loading through manifest file
Improved
Icons changed
Fix
Fixed the error of starting the filter if there are no open documents
New
Added identification of type parameters
Improved
Added processing of parameters of type
New
Added dynamic refreshing of category lists when switching between views or documents, as well as when changing the selection of items if the filter window is open
Improved
Added an option to close the filter in the same way as to open it
Improved
Added accounting of shared parameters
Improved
Saving in presets not only the category, but also the element type
Fix
Fixed localization error of some values
Fix
Removed the use of a static resource dictionary, which in some cases leads to errors when starting plugins
Improved
Added ignoring the color profile of the system when loading icons from plugin resources
New
Added the "All by selected" operation option that fills the list of categories by selected elements, but processes all elements in the model
New
Added parameter filter in the tree by parameter name
Improved
If the parameter is not set, the value of the parameter is displayed as "[Not set]"
Improved
If the current view is a schedule, the filter will not open
Fix
Fixed an error that causes the focus to be transferred to other application windows when the filter is closed
Fix
Fixed launch error after updating working libraries
New
Added the ability to move the filter around the screen
New
Added option "dynamic selection", which allows to select elements in the model when choosing a position in the tree
New
Added consideration of system types when grouping categories in a tree
New
Added ability to close the filter after applying the action
Improved
Improved algorithm of determining the availability of run of filter based on detach Revit windows
Improved
From the list settings of the sequence, and shortcuts are removed the numbers
Fix
Fixed saving sequences and shortcuts
New
Added AND/OR condition
New
Added the ability to exclude checked elements from the current selection
Improved
The context filter now only runs if the Revit window is active
Improved
Added white background for buttons
Improved
Added the implementation of isolation and inverse isolation of the elements through the transaction (can undo via Ctrl Z)
Improved
Added check the position of the cursor when run the filter through a sequence or combination of keys
Improved
Added sorting of parameter values
Improved
Fixed full description of the plugin used in the tooltip for the button on the ribbon
New
Added configurable options to run the filter