Searching for ST-code and replacing it

You can search for a certain string in the active ST-editor and replace it, if necessary.


logi.CAD 3 provides the following possibilities as alternative to this search within the active editor:


Searching for text

How to search for text within the active editor :

  1. In menu Edit, select Find/Replace...

  2. In the dialog, enter the search term under Find and click Find.
    Result: logi.CAD 3 goes to the first match – depending on the search direction, on the search scope and on the search options.

  3. Click Find again to go to the next match.

If you have closed the dialog after you have entered a search term, you might want to use Find next resp. Find previous to go to the next match . Both commands are included in menu Edit. The direction for "Next" resp. "Previous" is not affected by the selected search direction in the dialog Find/Replace.
If you have selected a text within the editor and you select Find next resp. Find previous, logi.CAD 3 goes to the next match of the selected text.

Replacing text

How to replace the matches within the active editor :

  1. In menu Edit, select Find/Replace...

  2. In the dialog, enter the search term under Find and the replacment term under Replace with. Click one of the following buttons:

    • Replace in order to replace the current match

    • Replace/Find in order to replace the current match and to go to the next match – depending on the search direction, on the search scope and on the search options

    • Replace All in order to replace all matches within the editor

Search direction

You can select Forward or Backward. The search starts at the current cursor location .bod

Search scope

You can select All to have the entire contents searched or Selected lines to have the selected area searched.

Search options

If requested, check one of these options:

  • Case sensitive if you want the search to be case sensitive

  • Whole word if you want to search for whole words that are identical to the search term

  • Regular expressions if you want the search term to be a regular expression (Regular expressions provide more powerful search possibilities.)

  • Wrap search if t he search should restart at the begin of the object after the end of the object has been reached

  • Incremental if logi.CAD 3 should go to the first match when entering the search term; For each entered letter or number, logi.CAD 3 goes to the first match.
    You can trigger an incremental search also by Incremental Find Next resp. Incremental Find Previous . Both commands are included in menu Edit. This type of incremental search is not affected by the settings in the dialog Find/Replace.
    After you have selected the command, enter the search term. logi.CAD 3 displays the search termin within the status bar. Use the cursor movement key ↑ (Up) or ↓ (Down) to go to the next match. If you want to quit the incremental search, press the cursor movement key → (Right) or ← (Left), Enter-key or ESC-key.