Topic
Prev Next

Add Connectors

Connectors define specific relationships between specific elements, so you usually create them directly on the diagram by dragging the required relationship type from the Diagram Toolbox. As for elements, the Toolbox automatically presents the connector or relationship types appropriate to the type of diagram.

Define a relationship between two model elements on a diagram

Step

Action

See also

1

Display the Diagram Toolbox; either:

  • Select 'Diagram | Toolbox' or
  • Press Alt+5

2

Open the diagram containing the elements to be connected, in the Diagram View (double-click on the diagram name in the Project Browser).

The selected diagram opens and the Toolbox is updated to display the categories of elements and relationships that are applicable to that diagram type.

Create New Elements on a Diagram Diagram View

3

Click on the required connector in the Toolbox to select the type of connector to draw.

The connector type is highlighted in the Toolbox.

4

Click on the source element in the relationship, then drag across to the target element.

The selected connector is drawn between the two elements.

The connector 'Properties' dialog displays.

5

Use the 'Properties' dialog to define the characteristics of the connector as required.

Modify Properties

6

Click on the OK button.

The 'Properties' dialog closes.

Notes

  • If you are creating several connectors of one type, after creating the first just click on the appropriate source element and press F3 to create the next connector of that type
  • As you drag a connector, you can press Shift to create a bend in the connector; if necessary, you can put several bends in the connector line, pressing Shift every time you want to change direction
  • To roll back the bends, keep holding the left mouse button down and press the Backspace key as many times as is necessary
  • To find out more about the type of connector you have dragged on to a diagram, right-click on the connector and select the 'UML Help' option, which displays a Help page on the connector type

Learn more