Searching for text or model elements in UML models

In UML models, you can search for text, such as a specific word or a group of letters. You can search for elements by name or find and replace text in model elements.

About this task

Typically, you search for a specific model element or group of model elements that share the same name or group of letters in their name. You can also search for a specific word in the documentation of a model element.

You can make your search more specific or more general by specifying search conditions.

To find or replace text in a model:

Procedure

  1. Click Search > Search.
  2. In the Search string field, on the Model Search tab, specify the search string that you want to find or replace.
  3. Select the model or models to search by either selecting the All Models check box or by clearing the check box, clicking Choose, and selecting one or more models, projects, or subsets of models.
  4. Optional: To specify additional search conditions, complete the following steps:
    • To perform a case-sensitive search, select the Case sensitive check box.
    • To search the documentation of model elements and diagram elements, select the Include simple text matches check box.
    • To search specific types of model elements, under Search for, select the check boxes for the appropriate model elements.
    • To search using a previously defined search, under Scope, select an existing search from the list.
    • To search all models, under Scope, select the All Models check box.
    • To limit the search by element representation, under Limit To, click the appropriate option.
  5. Complete one of the following steps:
    • To perform a search, click Search.
    • To replace text, click Replace and, in the Modeler search and replace dialog box, type the replacement text and click Replace.

Results

The results are displayed in the Search view.
Tip: To quickly search a diagram, right-click a diagram element; then click Find/Replace.

Feedback