Please note : This help page is for an older version of Enteprise Archtiect. The latest help can be found here.

The Relationships Window

If you want a quick overview of all the relationships of a single element, you can obtain this from the Relationships window. This window lists all the relationships of the element currently selected in a diagram or the Project Browser, showing:

The relationship type
Any stereotype on the relationship
The source and target elements in the relationship (the selected element can be either one in the relationship)
The direction of the relationship
Any stereotype on the related element
The related element type
The roles, if defined, of the target and source elements in the relationship


The Relationships window also has a Target in Diagram column which, if the row contains the value Yes, indicates that the related element is visible in the currently open diagram. If the related element is not in the current diagram (the row has no value), you have the option of adding it.

Access    Element | Relationships   (Ctrl+Shift+2)




See also

Display Connector Properties

Double-click on a connector in the list.

The <connector type> Properties dialog displays, on which you can view and edit the connector properties.


Connector Properties

Find Related Element

Right-click on the item line and select the Locate Related Element context menu option.

The related element is highlighted in the Project Browser.



Display Related Element Properties

Right-click on the item line and select the View Related Element Properties context menu option.

The element Properties dialog displays.


Properties Dialog

Delete Relationship

Right-click on the item line and select the Delete Connection context menu option.

A prompt displays to warn you that the selected items will be deleted from all diagrams and from the model, and that the action cannot be reversed. This message refers to the relationship only - the source and target elements remain in the diagram and in the model.

Click on the Yes button to proceed with the deletion.



Hide/Show Connector

If the related element exists on the current diagram, and the connector is shown, you can hide it. Right-click on the item line and select the Hide Relation context menu option.

If the related element exists on the diagram and the connector is hidden, you can re-display it. Select the Show Relation context menu option.



Locate Related Elements in Diagrams

Right-click on the item line and select the Find in all Diagrams context menu option.

If the related element exists only in one diagram, that diagram is displayed with the related element highlighted.  The focus of the Relationship window switches to the related element.

If the related element exists in more than one diagram, the Element Usage dialog displays, listing the diagrams. Click on one of the diagrams and on the Open button to display the selected  diagram with the related element highlighted.





Show Element Use

Add Related element to current diagram

Right-click on the item line and select the Place Related Element in Diagram context menu option. The cursor changes to the 'drop element' symbols (small rectangle and arrow with a boxed plus sign); move the cursor to the point in the diagram at which to drop the related element, and click the mouse button.

This facility is useful in building up a picture of how an element interacts with the rest of the model, especially when reverse engineering an existing code base.




In the Corporate, Business and Software Engineering, Systems Engineering and Ultimate editions, with security set ON, the diagram and the source and target elements must be free for editing before these options are available for use
Adding a related element from the Relationships window to the diagram does not change the focus of the window to that related element; the originally-selected element (and the original subject of the Relationships window) remains in context, and you continue working with that element..