Tutorial
Tutorial
Tutorial
How do I build a model in Enterprise Architect?
Follow this tutorial to build a simple model in a
Firebird Repository, using Enterprise Architect.
CREATED WITH
Table of Contents
Tutorial 4
Startup 6
Create a Project 9
Add a View to your Model 12
Add New Packages 14
Create a New Diagram 17
Create New Elements on a Diagram 20
Add Connectors 24
Modify Properties 27
Save Changes 29
Move Objects Around 30
Move Objects Within a Package 32
Move Objects Between Packages 34
Move Elements in a Diagram 36
Move Elements Between Diagrams 38
Connect a Different Element on a Diagram 42
Delete a Connector 44
Delete an Element 48
Remove Elements From a Diagram 49
Delete Elements From Your Model 51
User Guide - Tutorial 21 December, 2018
Tutorial
Basic Tasks
Task
Adding diagrams
Startup
When you install Enterprise Architect on your system, two
items are created:
· An Enterprise Architect icon on your Windows desktop
editions)
· Connect to a project via the Cloud (Corporate and
extended editions)
· Return directly to one of the projects you most recently
opened
· Open one of a number of Portals to a set of facilities that
Notes
· If you changed the default system folder name during
Create a Project
A project is a single file or repository-based store for one or
more models.
· The first step in getting started with Enterprise Architect
Ste Description
p
you started.
Add a View
Ste Instruction
p
Notes
· There are six types of View, which represent conventional
ways of categorizing the purpose of a Model View; these
Views represent different structural or behavioral aspects
of the same model
Access
There are numerous ways in which you can add a Package
to your model. Start by selecting the parent Package (or
View or Root node) in the Project Browser.
Then choose any of the methods outlined here.
Keyboard Ctrl+W
Shortcuts
Ste Action
p
option, or
· Right-click on the Package or View and select the
Notes
· When you create a Package, if you leave the 'Create
Diagram' option selected, the 'New Diagram' dialog
displays automatically
(c) Sparx Systems 2018 Page 18 of 54
User Guide - Tutorial 21 December, 2018
Ste Action
p
Notes
· You can also drag or paste existing elements onto a
diagram from the Project Browser
· If you are creating several elements of one type, after
creating the first just press Shift+F3 or Ctrl+click to create
the next element of that type
· You can also create elements using shortcuts to the main
facilities of the Toolbox, using the 'Toolbox Shortcut'
menu; press the Insert key or Spacebar key to display this
menu
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 currently displayed.
Ste Action
p
· Press Alt+5
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 path, 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
Modify Properties
When you create an element and connect it to another
element, you usually have to define various characteristics
of both the element and the connector to identify the
purpose and function they represent. You do this using the
Properties window.
When you create elements, Enterprise Architect
automatically names and numbers them by type - for
example, Class1, Class2 - so you should at least change the
'Name' field to more easily identify each element. Enterprise
Architect does not automatically name connectors, but for
many connector types you can provide a name that describes
the purpose of the connection.
Ste Action
p
Notes
· You can also modify the properties of an element or
connector using the 'Properties' dialog, which is specific
to the selected object; select:
- For an element, the 'Design > Element > Properties >
Properties Dialog' ribbon option or
- For a connector, right-click on the connector and
select the 'Properties' menu option
· On the 'Properties' dialog, click on the OK button to save
the changes and close the dialog
Save Changes
Throughout much of your work in Enterprise Architect, any
changes you make are automatically saved when you close
the dialog (data entry window) on which you made the
changes. In some cases the dialog contains a Save button or
Apply button, which you can click on to save your changes
and then keep working on the dialog.
Task
Notes)
· Within a type, components are initially listed in
their groups
Ste Action
p
Notes
· You can re-arrange elements in your preferred sequence
regardless of type, by selecting the 'Allow Free Sorting'
checkbox on the 'General' page of the 'Preferences' dialog
Ste Action
p
Notes
· Moving elements in the Project Browser does not affect
the use of elements in diagrams
Ste Action
p
Ste Action
p
Ste Action
p
3 Either:
· Click on the 'Cut' (scissors) icon in the Default
Tools toolbar, or
· Press Ctrl+X
The selected element is copied to the clipboard.
However, the element remains visible on the current
diagram until the clipboard content is pasted onto a
different diagram.
The model element itself is not affected in any way.
5 Either:
· Click on the Paste button in the Default Tools
toolbar, or
· Press Ctrl+V or Shift+Insert
Ste Action
p
3 Either:
· Click on the Copy icon in the Default Tools
toolbar, or
· Press Ctrl+C, or
5 Either:
· Click on the Paste button in the Default Tools
toolbar, or
· Press Ctrl+V or Shift+Insert
Notes
· By selecting more than one element at a time, you can
move or copy multiple elements in the same operation
· You can remove an element from a diagram by selecting
it, then pressing the Delete key
· You can also place an element onto an open diagram by
locating the element in the Project Browser, then dragging
it onto the diagram
element to another
Ste Action
p
Notes
· You can also tidy up a connection by dragging the end of
the connector to a better position on the edge of the
element, or move both ends at once by dragging the
middle of the connector
Delete a Connector
It is possible to hide a connector on a diagram, or to delete it
entirely from the model, removing the relationship between
the previously connected elements.
Displaying all of the connectors on a complex diagram can
make the diagram somewhat confused, so it can be useful to
hide some of the connectors, to clarify a specific aspect of a
more complex picture.
Ste Action
p
Browser, or
· Make an already open diagram the 'active'
3 Either:
· Press Ctrl+Delete
Connector' option, or
· Press the Delete key
Notes
· You cannot select multiple connectors - it is only possible
Delete an Element
You can delete the elements of a model from a diagram or
from the Project Browser.
Delete an element
Options
Ste Action
p
Browser, or
· Make an already open diagram the 'active'
2 Either:
· Press Ctrl+A to select all of the elements in the
diagram, or
· Click on an element in the diagram to select it (and
selection)
The selected elements are highlighted in the
diagram.
3 Either:
· Press the Delete key, or
· Press Ctrl+D, or
Notes
You can 'undo' the removal of a diagram element, by
pressing Ctrl+Z, or by clicking the Undo button in the
Default Tools toolbar
which it appears
· All relationships that it was involved in are also deleted
Ste Action
p
2 Either:
· Press Ctrl+Delete or
Ste Action
p
Browser, or
· Make an already open diagram the 'active'
2 Either:
· Press Ctrl+A to select all of the elements in the
diagram, or
· Click on an element in the diagram to select it,
3 Press Ctrl+Delete.
A confirmation dialog displays.
Notes
· Deleting a Package completely removes the Package and
all its contents - diagrams, child Packages and elements -
from the model
· Deleting an element completely removes the element and
its properties, connectors, child elements and child
diagrams from the model, and from every diagram that
contains it
· Deleting a diagram completely removes the diagram from
the model, but not the diagram's component elements;
they remain in the parent Package