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:
Quick Search in menu Search – The quick search is a fast and easy tool to search for text and to navigate to one of the search results.
Search... in menu Search – Use this command, if you want to search for a certain string in different objects (hence, in different editors).
Object Browser view – Use this view, if you want to search for objects within the application and to browse to their declaration.
navigation by using the dialog Open Model Element – Use this dialog, if you want to quickly go to an element in the code .
Searching for text
How to search for text within the active editor :
In menu Edit, select Find/Replace...
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.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 :
In menu Edit, select Find/Replace...
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.