The Search column in the Program workspace
Application
In the Search column, you can search the NC program for any character strings, such as individual syntax elements. The control lists all the results found.
Related topics
- Search for the same syntax element in the NC program with the arrow keys
Searching for the same syntax elements in different NC blocks
Description of function
The control provides the full range of functions in the Editor operating mode only. In the MDI application, you can search only the active NC program. The Search and replace mode is not available in the Program Run operating mode.
The control provides the following functions, icons and buttons in the Search column:
Area | Function |
---|---|
Search mode: |
|
Match whole words only | If you select the check box, the control only displays exact matches. This means that if you search for Z+10, for example, the control ignores Z+100. The check box is available in every mode. |
Search for: | In the input area, you define the search term. If you have not yet entered any characters, the control suggests the last six search terms for selection. The search is not case-sensitive. |
Use the Apply selection icon to transfer the currently selected syntax element to the input area. If the selected NC block is not edited, the control accepts the syntax initiator. | |
Search | Use this button to start the search in the Current program and Opened programs modes. |
The control shows the following information about the results:
- Number of results
- File paths of the NC programs
- NC block numbers
- Entire NC blocks
The control groups the results according to NC programs. If you select a result, the control positions the cursor on the corresponding NC block.
Search and replace mode
In Search and replace mode, you can search for strings and replace the results found with other strings, such as individual syntax elements.
The control performs a syntax check before replacing a syntax element. With the syntax check, the control ensures that the new content results in correct syntax. If the result produces a syntax error, the control does not replace the content and displays a message.
In Search and replace mode, the control provides the following check boxes and buttons:
Checkbox or button | Meaning |
---|---|
Search backward | The control searches the NC program from bottom to top. |
Wrap around | The control searches the entire NC program, beyond the start and end of the NC program. |
Find next | The control searches the NC program for the search term. The control marks the next result in the NC program. |
Replace | The control performs a syntax check and replaces the selected contents in the NC program with the contents of the Replace with: field. |
Replace and find next | If a search has not yet been performed, the control only marks the first result. When a result is highlighted, the control performs a syntax check and automatically replaces the found content with the contents of the Replace with: field. The control then marks the next result. |
Replace all | The control performs a syntax check and automatically replaces all found results with the contents of the Replace with: field. |
Search for and replace syntax elements
To search for and replace syntax elements in the NC program: | ||
| ||
| ||
| ||
| ||
| ||
|
Notes
- The search results are retained until you shut down the control or search again.
- If you double-tap or click on a search result in a called NC program, the control opens the NC program (on a new tab if not already open). If the NC program is already open, the control switches to the corresponding tab.
- If you have not entered a value for Replace with:, the control deletes the search value.