FAQ - Diagrams In Enterprise Architect

Topic Contents

Adding Connections
To connect classes, use cases, objects, components, etc. first find the type of association you want in the UML toolbar - use case link, association, aggregation etc. Click on it with the left mouse button, then place the mouse cursor over the first element, press and hold down the left mouse button (the cursor should change to a vertical arrow). Then drag to the second element and release the mouse button.

In short: select link, click on a start element, hold the button down and drag to the destination.

You can then double click on an association to change properties, or right click to change connection type, direction if you want.

Suppress Diagram Border from generated documentation
To suppress the borders from being displayed in generated documentation use the following procedure:

  1. Open the Tools menu item.
  2. Select Options.
  3. Open the Diagram Item from the list of options.
  4. Uncheck the On Saved Images checkbox from the Diagram Frames section of the Dialog box.
  5. Generate Documentation.

Copy Diagrams or Diagram elements
There several options for copying diagram and diagram elements. Diagrams may be copied in their entirety via a deep copy or copied without the diagram messages via a shallow copy. For more information go to the Duplicate a Diagram Page.

To copy specific elements of a diagram select the element and press ctrl+c and paste the element on the target diagram. For more information relating copying diagram elements go to the Copy Diagram Element Page.

Hyperlinking from one Diagram to another
To create a hyperlink from one diagram to another. One the diagram that you want to display a hyperlink to another diagram. From the project view select and drag the diagram you want to create a hyperlink. Then drag the diagram on to the current diagram and select the option Hyperlink. For more information relating to hyperlinking diagrams go to the Hyperlinks Page.

Linking An Element's Note to an External Note
To connect an element internal note to an external can be achieved by using the following steps:

  1. From the UML Elements Toolbar create a Note.
  2. Go to the Links drop down menu from the Elements Toolbar and select a Note Link.
  3. Link the element and the note by using this connector.
  4. Right Click on the new link to bring up its context menu a select Link this Note to an Element feature.

For more information relating to linking external notes to an elements notes go to the Link a Note to an Element Page.

Setting the Run State of an Element
The run-time of an object instance can have specific values for its attributes, or exist in a particular state. To set the run state of an element use the following steps:

  1. Right Click on the Element you wish to set the run state for to bring up its context menu.
  2. Select the Set Run State menu item.
  3. In the Define Run State dialog box, enter in the following information:
    • Variable, to set the name of the Run State, for example RAM
    • Operator, to set the operator, for example =
    • Run State, Sets the run state of the variable, for example 256 MB
    • The example above would result in setting the run state to be RAM = 256 MB

For more information relating to setting the Run State of an Element go to the Define a Run-time Variable Page.