Search and replace

17701

Search and replace

It's a free plugin!

  • Search and replace text in specified search scopes

    Icon

    32x32px 16x16px dark 32x32px dark 16x16px

    Related news and articles


    Using

    The plugin is used to search for and replace text in selected scopes, including text in type and instance parameters. The plugin also allows you to:

    • copy to the clipboard ids of elements with found text;
    • display the elements on the screen.

    1

    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 checkbox multiple marked circle outline and uncheck all checked scopes checkbox multiple blank circle outline.

    In the upper right part of the plugin window you can find the search settings and search and replace buttons:

    Fields to fill in

    Find – field for entering the value you're looking for.
    Replace with – field for entering the value to be replaced.
    With the plus button, you can add additional fields for multiple searches:

    9

    Comparison modes

    Normal – search and replace mode by exact matches.
    Mask – search and replace mode using control characters to substitute parts of the text: * – 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.
    Regular expression – search and replace mode using a pattern with regular expressions.

    Additional options checkboxes

    Case sensitive – option for uppercase or lowercase search.
    Whole Word – option to search for values that are not part of other words.
    Search by selected elements – searches by the model elements selected at the time the plugin is run.

    Startup buttons

    Search all – searches the specified search areas with the specified settings and displays the result in the search window (see below). The button will not be available if no value is specified in the Find field or no search area is selected.
    Replace checked – replaces the marked search results. The button will not be available if the Replace with field is not filled or there are no marked items in the search results.
    Search and replace all – searches the specified search areas with the specified settings and replaces all found values. Herewith the search results are not displayed. The button is not available if no values are specified in the Find and Replace with fields.

    The search results are displayed in the lower right part of the plugin window. Each result position has a header indicating the model element, as well as the text in which the search was performed, with the found value highlighted. 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:

    checkbox multiple marked circle outline – check all items in the list.
    checkbox multiple blank circle outline – uncheck all items in the list.
    broom – clear the result list.

    When hovering the cursor over the line with the search result, buttons appear on the right side of the line:

    identifier – copy element ID to clipboard.
    target – display element.

    2

    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.

    The results of the parameter search are displayed in the lower right part of the plugin window. Each result position has a header indicating the parameter, as well as the text in which the search was performed, with the found value highlighted.


    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":

    3

    Configure the element filter by categories:

    4

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

    5

    Fill in the fields Parameter, Find and Replace with:

    6

    Click the Search and replace all button.

    7

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

    10

    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:

    11

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

    12

    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):

    8

  • Change history for
    Year

    2025 Year

    Revit: Search and replace 2.12.1.0 (22.09.2025)

    Fix
    Fixed an error in processing search by selected elements in the schedule filter.

    Revit: Search and replace 2.12.0.0 (22.09.2025)  Read more

    New
    Added the ability to use wildcards for searching and replacing parts of text.
    New
    Added multiple search.
    New
    Added search and replace in filter names.
    New
    Added replacement of system names.
    New
    Added replacement of the system name.
    New
    Search and replace in schedule filters.

    Revit: Search and replace 2.6.0.0 (25.06.2025)

    New
    Added search and replace in the "Title" section of Schedules.

    2024 Year

    Revit: Search and replace 2.5.0.0 (25.12.2024)

    New
    Replaced the search and replace algorithm in Text Notes.

    Revit: Search and replace 2.4.4.0 (11.10.2024)

    Improved
    Consideration of selected element types when the “By selected elements” option is enabled.

    Revit: Search and replace 2.4.3.0 (12.09.2024)

    New
    Added “Check all” and “Uncheck all” options.
    New
    Added search in Schedules name and headers.
    Fix
    Fixed a search error with the "Whole Word" option enabled.

    Revit: Search and replace 2.2.2.0 (17.06.2024)

    New
    Added ability to process Text Annotations using regular expressions.

    Revit: Search and replace 2.1.2.0 (14.01.2024)

    Fix
    Added a check that the plugin window is already open.

    2023 Year

    Revit: Search and replace 2.1.1.0 (10.11.2023)

    Improved
    Using the ModPlus.Xaml.Behaviors.Wpf.dll library instead of Microsoft.Xaml.Behaviors.dll to resolve compatibility issues with other plugins.

    Revit: Search and replace 2.1.0.0 (17.05.2023)

    New
    Added search and replace in material names.

    Revit: Search and replace 2.0.0.0 (19.02.2023)  Read more

    New
    Added search and replace in parameters.
    New
    Added search and replace in generic annotations.
    New
    Added search and replacement in viewport view name.
    New
    Added search and replace in sheet number.
    New
    Added an ability to copy element identifier to clipboard.
    New
    Added ability to call the element display function.
    Improved
    Save search settings.
    Improved
    Moved focus to the plugin window after closing the results window.

    Revit: Search and replace 1.3.5.0 (08.01.2023)

    Improved
    Changed icons.
    Improved
    Added command access settings on the ribbon.

    2022 Year

    Revit: Search and replace 1.3.3.0 (09.06.2022)

    Improved
    Setting the Revit window as the parent window for the results window.

    Revit: Search and replace 1.3.2.0 (02.06.2022)

    New
    Added the ability to search among the selected elements.
    Improved
    Added the ability to replace with an empty value.
    Fix
    Fixed the error of displaying quotes in search results.

    Revit: Search and replace 1.2.0.0 (25.03.2022)

    New
    Added "Viewport title" search scope.

    Revit: Search and replace 1.1.0.0 (11.03.2022)

    Improved
    Added ability to turn off the "Regular expression" mode.