FAQ - Diagrams In Enterprise Architect
- Adding connections in diagrams
- Copy a diagram or diagram element
- Suppress Diagram Border from Documentation
- Hyperlinking from one diagram to another
- Linking an Element's Note to an External Note
- Setting a Run State
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.
- Open the Tools menu item.
- Select Options.
- Open the Diagram Item from the list of options.
- Uncheck the On Saved Images checkbox from the Diagram Frames section of the Dialog box.
- 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.
- From the UML Elements Toolbar create a Note.
- Go to the Links drop down menu from the Elements Toolbar and select a Note Link.
- Link the element and the note by using this connector.
- 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:
- Right Click on the Element you wish to set the run state for to bring up its context menu.
- Select the Set Run State menu item.
- 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.