When trying to extend your model or visualize additional elements on the diagram pane, you can represent symbols that are related to a selected symbol via relationships.This functionality allows for displaying shapes and paths among those shapes which have already been created in the model.
After selecting the Display Related Elements command, the Display Related Elements dialog opens. This dialog consists of the following sections (see the figure below):
- Element box (1) shows the name of the selected element shape of which you are going to display its related elements.
- Relations area (2) lists all relationship types which connect the selected element shape with other elements.
- Expand Relations area (3) allows you to select the direction of the relationships which you want to display on the diagram pane.
- Scope area (4) allows you to select the search scope of the elements related to the selected element.
- Depth area (5) allows you to specify the search range for the selected relationships.
- Always create new symbols option (6) allows you to create a symbol even if a related element already has a symbol in the diagram.
- Layout related elements option (7) lays out new symbols by using the default diagram layout.
The following procedure will guide you through using the Display Related Elements command and dialog when you want to represent all related elements via selected relationship types of the selected shape on the diagram pane. The functionality works for the entire diagram, single shapes, or numerous selected shapes.
To display related elements
- Select a diagram frame or any number of shapes on the diagram pane.
Open the Display Related Elements dialog in one of the following ways:
- Right-click to open the shortcut menu, and select Display > Display Related Elements.
- On the diagram toolbar click , and select Display Related Elements.
On the main menu, click Analyze > Display Related Elements.
Important
The Display Related Elements dialog cannot be opened if the selected element shape or diagram doesn't contain any related elements.
- In the opened dialog, specify:
- In the Relations area (2), select check boxes of the listed relationship types.
- In the Expand Relations area (3), select the direction of the relationships:
- Incoming - in which the element participates as client.
- Outgoing - in which the element participates as supplier.
- Both-in which the element participates as both client and supplier. - In the Scope area (4), choose the location in which the related elements should be found:
- Whole Project - search in the whole model.
- Package - search in the package under which the selected element is created. - In the Depth area (5), select the search range for the relationships:
- Indefinite - search for all possible relationships.
- Definite - search for a specified level of relationships.
- Select the check box of the Always create new symbols option to create a symbol even when the related element already has a symbol displayed on the diagram pane.
Select the check box of the Layout related elements option to layout new symbols by using the default diagram layout.
Note
The position of the selected element shape can be changed after selecting the Layout related elements check box.
Click OK.
According to the specified relationship type, scope, depth, direction, layout, and creation options, all related elements of the selected shape are represented as shapes and paths on the diagram pane.
Related pages
Sample model
The model used in the figures of this page is the Inventory Control System sample model. To open this sample do one of the following:
- Download Inventory Control System.mdzip.
- Find in modeling tool <modeling tool installation directory>\samples\case studies\Inventory Control System.mdzip.