Drawing links in a diagram

Introduction

In Modelio diagrams, there are four different ways of drawing links:

  • The orthogonal mode, where a link contains one or more right angles
  • The direct mode, where a link is presented as a straight line
  • The bendpoint mode, where a link is presented in the manner of your choice
  • The rake mode, where a link is presented in rake bar form

All Modelio diagrams include the model expert feature, which provides real-time assistance when you are creating links in diagrams. If you try to create an authorized element (in this example, an association between two classes), the model expert highlights the concerned element in green, indicating that the creation operation you are attempting is allowed. If you try to create an unauthorized link (for example, an association between a package and a class), the model expert highlights the concerned element in red, indicating that the creation operation you are attempting is not allowed.

Drawing links in orthogonal mode

2

Drawing an association between two classes in orthogonal mode (default mode)
  1. Click on the “Create an association” icon in the diagram palette.
  2. Click on the origin class.
  3. Draw your link, with any desired intermediate points, and then click on the destination class.

Drawing links in bendpoint mode

3

Drawing the same association but this time in bendpoint mode (using Shift)
  1. Click on the “Create an association” icon in the diagram palette.
  2. Click on the origin class.
  3. Draw your link while holding down the Shift key, with any desired intermediate points, and then click on the destination class.

Drawing links in rake-bar mode (shared target links)

Inheritance links linking more than two elements are automatically presented in rake-bar mode. Links in rake-bar mode can be drawn vertically, horizontally, pointing up or pointing down.

Additional elements can be added to the same rake bar link, simply by clicking on the link itself.

4

Drawing an inheritance link in rake-bar mode
  1. Click on the “Create a Generalization” icon in the diagram palette.
  2. Click on the origin class.
  3. Draw your link with any desired intermediate points, and then click on the already existing Generalization.

The Smart links tool

Modelio 3.6 introduces Smart Links, an easy-to-use powerful tool to create links in your diagrams. It can be used in two different ways.

In the diagram palette

5

Drawing an association between two classes using the Smart links tool command in the diagram palette

Steps:

  • 1. Click on the “Smart links” command in the diagram palette
  • 2. Click on the origin class
  • 3. Click on the target class
  • 4. Choose a link type from the list

Using the mouse

6

Drawing an association between two classes using the Smart links tool

Steps:

  • 1. Move your mouse cursor over the origin class and wait for one second
  • 2. When the Smart links handle 8 appears, click on it and hold down your mouse button
  • 3. Move your cursor over to the target class, as if to drag&drop the link’s end onto it
  • 4. Release the mouse button, then choose a link type from the list

Note: If you dont’t want to display the Smart links handles (green arrows), you can deactivate them in the Symbol view of the diagram:

7

creating_link-type_elements_in_diagrams_2.png (41.6 KB) admin admin, 01 June 2018 18:03

CreateBendLink.png (35.7 KB) admin admin, 01 June 2018 18:03

creating_link-type_elements_in_diagrams_3.png (47.4 KB) admin admin, 01 June 2018 18:03

creating_link-type_elements_in_diagrams_1.png (26.4 KB) admin admin, 01 June 2018 18:03

creating_link-type_elements_in_diagrams_4.png (19.9 KB) admin admin, 01 June 2018 18:03

CreateRakeLink.png (28.5 KB) admin admin, 01 June 2018 18:03

SmartLinks_handle.png (576 Bytes) admin admin, 01 June 2018 18:03

CreateLink.png (31.7 KB) admin admin, 01 June 2018 18:03