Search and replace
Icon
Related news and articles
- New plugin for Revit. Search and replace
- Revit. Find and replace in parameters and generic annotations
- Revit. Find and Replace with Mask
Using
The plugin is used to search for and replace text in selected areas, including text in type and instance parameters. The plugin also allows you to copy the ID of the element containing the found text to the clipboard and display the element on the screen.
At the top of the plugin window is the configuration drop-down list. The buttons to the right allow you to create a new configuration
, rename
, duplicate
, export
, import
, or delete
the current configuration.

In the left part of the plugin window you can see a list of search areas. You have to check the scopes in which you want to search and replace the text. Using the buttons on the left side of the list you can check all items in the list
and uncheck all checked scopes
.
In the upper right part of the plugin window you can find the search settings and search and replace buttons:
Fields to fill in
With the

Comparison modes
* – any number of characters, ? – one arbitrary character, # – a digit. If the mask in the Find field does not contain any control characters, then * in the Replace with field will represent the entire found fragment, to which a prefix and/or suffix can be added. To use control characters in the expression as ordinary string characters, you must escape them with the "\" symbol placed before the character to be escaped (\*, \?, \#, \\). Examples of mask applications are described below.Additional options checkboxes
Startup buttons
Search results are displayed in the lower-right part of the plugin window. Each result contains:
- a title indicating the model element
- the text in which the search was performed, with the found value highlighted
- a preview of the replacement result.
To perform the Replace checked function, you need to check the checkboxes next to the desired positions.
During the work with the search results you can use buttons:
When hovering the cursor over the line with the search result, buttons appear on the right side of the line:

When you select the search area by parameter, the upper right part of the plugin's window adds the parameter search settings.
Element – filter for search elements, consisting of filter by category, boolean operator AND/OR, and filter by parameters (you can read more about working with the elements filter here).
Parameter – field where you specify the name, system name, or GUID of the parameter. If you do not fill the Parameter field, the search will be performed for all string parameters available for editing.
Search results are displayed in the lower-right part of the plugin window. Each result contains:
- a title indicating the model element
- the text in which the search was performed, with the found value highlighted
- a preview of the replacement result.
Examples
Example 1. It is necessary to find all door tags "D-1" on the 1st and 2nd floors and replace them with "D-2". Select the search area "Instance parameters in project":

Configure the element filter by categories:

Select the "AND" option for the logical operator. Configure the filter by parameters:

Fill in the fields Parameter, Find and Replace with:

Click the Search and replace all button.

Example 2. It is necessary to add the prefix "E" to sheet numbers. Select the search area "Sheet number":

Select the comparison mode Mask. Since it is necessary to add a prefix to the number without changing anything in it, enter the control character "*" in the Find field, and in the Replace with field enter the expression "E*". Click the Search all button to visually check the desired sheet numbers:

After making sure all the required sheets are selected, click Replace checked:

Example 3. It is required to change the values of the "View name" parameter from "View-001a", "View-002a", "View-003a" to "View-001b", "View-002b", "View-003b". To do this, select the search area "View name" and enter the corresponding mask values in the fields (replace the variable part of the name with control characters):
