Showing related modeling diagram elements

You can show diagram elements that are related to the selected diagram element in a modeling diagram.

For example, if you created a class diagram that illustrates a parent class and its child classes, you can add the parent class to a new diagram, and then use the Show Related Elements feature to add its child classes and generalization relationships automatically.
Note: To show related diagram elements, the model elements and relationships must already exist.

To show related diagram elements:

  1. Open a diagram that contains diagram elements or association connectors.
  2. In the diagram editor, right-click a diagram element; then click Filters > Show Related Elements.
  3. In the Show Related Elements in Diagrams window, click a Custom Query.
  4. In the Select in Model(s) field, click a model with related diagram elements and click Details.
  5. In the Relationship Types field, click the relationships that you want to show.
  6. In the Expansion Direction field, click the direction of the relationships that you want to show.
  7. In the Stopping List field, click the conditions for ending the query.
  8. In the Levels field, specify the number of levels through which to search and click OK.

Parent topic: Graphically representing model elements in modeling diagrams

Related concepts
Diagram elements

Terms of use | Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.