-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Find and Replace
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Find and Replace
Main menu: Edit >
Find and Replace....
Main menu: Mechanical - Edit >
Find and Replace....
Ribbon: Mechanical - Utilities >
Find and Replace....
Toolbar: Edit >
Find and Replace....
Command line: MCFIND, FIND.
Shortcut: Ctrl+F.
The "Find and Replace" tool is used to find and replace string values in nanoCAD Mechanica 25 objects in a drawing or in an object base.
Search
1. Call the command. A dialogue will open "Find and Replace".
2. In the "Find what:" field, enter the search phrase.
3. Select "Search in" from the list, or by using the additional button that defines the search area. The button action depends on the context of the "Find and Replace" command call. If the command is called from the object manager, the "Quick selection" window opens.
4. Select search parameters :
- Match case. If the flag is set, the search is case-sensitive.
- Match whole words. If the flag is set, the search is performed for individual words, that is, combinations of characters separated by punctuation marks or spaces.
- Search within found. The switch is available after the string has been searched and limits the search range.
- Use extended options. The switch is available when searching in the object database. Click the button
opposite the parameter and in the window that appears, select the advanced search areas.
- Use regular expressions. Enables search mode with additional selection conditions. Click the button
opposite the parameter and select the required expression from the list that appears. When you hover over a list item, a tooltip appears with a detailed explanation. The choice of expression is made with the left mouse button. Multiple regular expressions can be used together.
- Multiline text. Turns on the search mode for multi-line text.
- Search in hidden objects. Turns on the mode when both visible and hidden objects are searched.
- Search in blocks. Turns on the mode when the search is carried out inside the blocks.
5. Click the "Find all" button, the search process will start.
6. The search result will be displayed in the table.
Search result
The search result is displayed in the table. Data is sorted by mouse click in the column header. The "Next" button allows you to move the active row in the table.
The table has additional commands:
-
Clear all - clears the search result list.
-
Group results by objects - displays results for objects.
-
Show object - shows the object corresponding to the selected row in the drawing. The object is shown even if it is on an inactive sheet.
-
Edit object - opens a dialog box for the object corresponding to the selected row.
Replace
1. Search for objects to replace.
2. In the "Replace with" input field, enter the text string to replace the found lines with.
3. Click the "Replace" or "Replace All" button:
-
The "Replace All" button replaces all found fragments with a new value.
-
The "Replace" button starts the process of successive replacement of the found fragments. To replace all found fragments, press the "Replace" button each time, while the active line will move through the table below. The "Next" button allows you to move the active row through the table, skipping the next found fragment in the list without replacing it with a new value.