Search and replace

121

Search and replace
To use the purchased license, use the Personal account of the ModPlus software installed on Your computer
Old price: 0.00 USD
6.00 USD
  • Search and replace text in object properties and parameters


    Icon

    32x32px 24x24px 16x16px


    Related news and articles


    Using

    1

    To start working with the plugin, you must create a configuration by clicking plus. Created configurations can be duplicated plus box multiple outline, renamed square edit outline, exported export, imported import and deleted delete outline using the corresponding buttons.

    2

    The plugin is divided into three sections: search scope, settings, and the search results.

    search scope

    The Objects whose properties and parameters are to be searched are specified using the Object filter. The Object filter includes a type filter and an attribute filter, which can be applied separately or combined by selecting the logical operator AND/OR.

    Attribute – the field where the name of the object's property or parameter is specified. If the Attribute field is left empty, the search will be performed across all editable attributes.

    Settings

    This section contains search settings and the buttons for running search and replace.

    Find – input field for the value to search for.
    Replace with – input field for the replacement value.
    Using the plus button you can add additional fields for multiple search operations:

    3

    Comparison Mode:

    Normal – search and replace by exact match.
    Mask – search and replace using wildcard characters: * – any number of characters, ? – any single character, # – a digit. If the wildcard in the Find field contains no wildcard characters, then * in the Replace with field will represent the entire found fragment, allowing you to add a prefix and/or suffix. To use wildcard characters as literal characters, escape them with "\" (\*, \?, \#, \\). Examples of using wildcards are described below.
    Regular expression – search and replace using a pattern with a regular expression.

    Case sensitive – enables case-sensitive search.

    Whole word – finds values not included in other words.

    Search by selected objects – performs search on objects selected at the moment the plugin is started.

    To start search and/or replace, the following commands are used:

    Search all – searches in the specified objects with the given settings and displays the search results. The button is unavailable if the Find field is empty or the object filter is not set.

    Replace checked – replaces the checked search results. The button is unavailable if no search results are checked.

    Search and replace all – searches with the given settings and replaces all found values without showing results. The button is unavailable if the Find field is empty.

    Search results

    4

    The search results are displayed in the lower part of the plugin window. Each result item contains a header indicating the object and attribute, as well as text where the match was found, with the matched part highlighted. To execute the Replace checked command, check the required result items.

    Buttons available for interacting with search results:

    checkbox multiple marked circle outline – check all items.
    checkbox multiple blank circle outline – uncheck all items.
    broom – clear results list.

    When hovering the cursor over a search result item, a target button appears on the right, allowing you to show the object in the model.

    In Renga versions 5.1–8.7, the search is performed across model objects and all assemblies. In Renga versions 8.8 and higher, the search is performed on objects of the current view (model or assembly).


    Examples

    Example 1. We need to find all door marks "D-1" on floors 1 and 2 and replace them with "D-2".

    Configure the type filter:

    5

    Select the "AND" logical operator. Configure the attribute filter:

    6

    Fill the Attribute, Find and Replace with fields:

    7

    Click Search and replace all:

    8

    Example 2. We need to change the "Level" parameter value from "Level 1", "Level 2", etc. to "Floor 01", "Floor 02", etc.

    Select the Mask comparison mode. Since the number after the word “Level” may contain one or two digits, we add additional fields for multiple search:

    9

    Replace the variable part (the level number) in the Find and Replace with fields with wildcard characters. Click Search all to visually verify the affected parameters:

    10

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

    11

  • Change history for
    Year