Sch_Dlg-FindAndReplaceTextFind and Replace Text_AD

This document is no longer available beyond version 22.0. Information can now be found here: Text Search for version 25

 

The Find and Replace Text dialog The Find and Replace Text dialog

Summary

The Find and Replace Text dialog provides controls to quickly find specific or partial text in accordance with defined search options, then replace that text with specified new text.

Access

From the schematic editor or schematic library editor, click Edit » Replace Text from the main menus or use the Ctrl+H keyboard shortcut.

Options/Controls

Text 

  • Text To Find - use this field to enter the text string for which you want to search. Either enter the full word or search for a partial string. The latter requires the Whole Words Only option to be disabled. The string can contain the wildcard characters ? (single character) and * (any group of characters).
    Wildcards are always case insensitive.
    Each string searched will be added to the field's drop-down list for quick retrieval.
  • Replace With - use this field to enter the replacement text string. The text entered will completely replace the resulting text string found through the Text To Find entry and defined options.
    Selective string substitutions can be performed using the {oldtext=newtext} syntax to change just a portion of the search string. For example, if you enter the string VCC into the Text to Find field and enter the string {CC=DD} into the Replace With field, all instances of the string VCC will be changed to VDD. You can use multiple sets of brackets to define complex replacements - the leftmost bracketed replacement is made first, then the next one to the right, etc.

Scope

  • Sheet Scope - use this field to determine the scope of the text search in terms of the schematic documents involved. Choose one of the following options:
    • Current Document - search the active document only.
    • Project Documents - search across all schematic documents in the active project.
    • Open Documents - search across all open schematic documents, irrespective of the project they belong to.
  • Selection - use this field to further constrain the scope of the search, based on the current selection status of objects. Choose from the following options:
    • Selected Objects - limit the search to only those objects that are currently selected.
    • DeSelected Objects - limit the search to only those objects that are currently deselected.
    • All Objects - no limitation; search all objects regardless of their selection status.
  • Identifiers - use this field to further constrain the scope of the search based on the type of text-based object. Choose from the following options:
    • All Identifiers - no limitation; search across all text-based objects (text strings, text frames, pins, net identifiers, and designators).
    • Net Identifiers Only - limit the search to only net identifiers (ports, power ports, sheet entries, off sheet connectors, and net labels).
    • Designators Only - limit the search to only component designators.

Options

  • Case sensitive - enable this option to perform a case-sensitive search, meaning the target text must match the case of the search text entered into the Text To Find field. This option has no bearing on the replacement text, which simply follows the case used for the text entered into the Replace With field.
  • Prompt On Replace - enable this option to be prompted to manually confirm replacement of each instance of matching text. A Confirm dialog is used to handle each instance in turn with a final Information dialog summarizing the number of replacements made. With this option disabled, all instances of found text that match the search text will be replaced without manual confirmation required. Similarly, an Information dialog will appear to show the number of replacements made.
  • Whole Words Only - enable this option to restrict the search to whole words only. This means the search text must exist fully as is and not be part of a larger text string. For example, if this option is enabled, when looking for "cat", the software will not consider the first three letters of "category" - a valid search match. Disable this option to freely search for partial strings.
  • Regular expressions - check to search using regular expressions.
    • ^ - only match when the string is at the start of a line.
    • $ - only match when the string is at the end of a line.
    • . - indicates any single character (e.g., "te.t" matches "test", "text", and "tent", but not "tet").
    • * - indicates any set of characters, including no characters (e.g., "te*" matches "text", "tent", and "te", but not "t").
    • + - indicates any set of characters, except no characters (e.g., "te+" matches "text", and "tent", but not "te").
    • [ ] - find any of the characters enclosed in the brackets.
    • [^] - a caret at the start of a string in brackets means NOT (e.g., "[^tes]" matches any characters except t, e, or s).
    • [-] - a hyphen within a string in brackets signifies a range of characters (e.g., "[l-o]" matches the characters l, m, n, and o).
    • { } - used to group characters or expressions. Groups can be nested with a maximum number of 10 groups in a single pattern.
    • \ - a backslash before a wildcard character tells the Schematic Editor or Schematic Library Editor to treat that character literally, not as a wildcard (e.g., "\^test" does not look for the string test at the start of a line; it looks for the string "^test").
If you find an issue, select the text/image and pressCtrl + Enterto send us your feedback.
참고

Altium 제품에 접근할 수 있는 레벨에 따라 사용할 수 있는 기능이 달라집니다. 다양한 레벨의 Altium Designer Software Subscription에 포함된 기능과 Altium 365 플랫폼에서 제공하는 애플리케이션을 통해 제공되는 기능을 비교해보세요.

소프트웨어에서 논의된 기능을 찾을 수 없는 경우, Altium 영업팀에 문의하여 자세한 정보를 확인해주세요.

콘텐츠