Drawing on the canvas¶
The canvas draws the open diagram view. What can be connected, and how, comes from the loaded metamodels: connect, change type and append offer only what their relationship shapes permit (for ArchiMate, its relationship tables; C4 and Backstage list their pairs the same way).
Tools¶
The canvas toolbar, above the diagram, starts with three tools. A tool lasts for one gesture, then the canvas is back to selecting.
| Tool | Tooltip | Does |
|---|---|---|
| ↗ | Connect — click a source element, then a target | draws a relationship of the type the metamodel ranks first for the two, and opens Change relationship type on it when the two permit more than one specific type (no menu for a type chosen in the palette) |
| ⬚ | Lasso select | drag a rectangle round what to select |
| ✋ | Pan the canvas | drag to move the view; dragging the empty canvas does the same |
After them come the format painter (🖌, see Appearance), Arrange view… (three boxes in two rows joined by right-angled lines; see Arrange view) with ▾ beside it for the other ways to arrange, the quick actions that align, distribute, size, fit to text and route what is selected (see Tidy a diagram), Line shape (a bent line with ▾; see Line shape), Order (two squares with ▾; see Order), 🔍 (Search), and three switches, each a picture named in its tooltip. A switch that is on is shown pressed, in blue.
| Switch | Picture | Does |
|---|---|---|
| Relationship names | "Tx" over a line between two ends | shows relationships' names on their lines (Relationship names) |
| Notation only | a box and a paint drop, struck through while it is on | draws the notation without the look set in the view (Notation only) |
| Shapes | a square, a circle and a triangle, with ▸ | opens the row of groups, notes and shapes, and shows ▾ while it is open (Shapes) |
When it is narrow¶
The canvas toolbar keeps to one row. When its buttons do not fit — a narrow window, side panels open, two views side by side — it moves them into ▾ beside Arrange view…, under a heading each, after the dialogs, in this order:
| As it narrows | Into ▾ |
|---|---|
| first | Align and Distribute: the six align buttons and the two distribute buttons |
| then | Size — the match buttons, Default size, and Fit to text by its three ways — and Grid and relationships: Align to grid and Arrange relationships |
| last | Line shape and Order, each with its choices |
An entry in ▾ does what its button does, and is greyed out as the button is until enough is selected. The tools, the format painter, Arrange view…, 🔍 and the switches stay in the row; narrower still, the row wraps. Widening puts the buttons back.
- Make the window 1024 px wide, or open the RDF panel beside the model tree and the palette.
- Click ▾ beside Arrange view…: under the dialogs, Align and Distribute list their buttons.
- Select two elements, and choose Align left there: they line up, as the button does.
The Linked.Archi mark¶
At the bottom right of each diagram, Linked.Archi's mark with linked.archi beside it says that la-gram is part of Linked.Archi. Click it to open https://linked.archi in a new tab; from the desktop app, it opens in your browser. It lies over the diagram and is not part of it: File › Export view leaves it out of the SVG and the PNG, saved or copied. A catalog or a matrix has none, and with two views at once each diagram has its own. If you build on la-gram, please keep it (Licence).
- Point at linked.archi at the diagram's bottom right: it says la-gram is part of Linked.Archi — linked.archi opens in a new tab.
-
Choose File › Export view › Save as SVG…, and open the file: the diagram, without the mark.
-
Click ⬚ in the canvas toolbar.
- Drag a rectangle round "Customer" and "Place order": both are selected.
Placing elements¶
Elements come from the palette or the model tree:
- From the palette, drag an element type onto the canvas, or click it, then click the canvas where it goes. The new element is named after its type.
- From the model tree, drag an element's row onto the canvas. It is placed (again, if the view already shows it), and the relationships the model has between it and what the view shows are drawn too.
A relationship type in the palette is placed the same way: click it, then click the source, then the target.
- In the palette, click Business Actor, then click the canvas: a Business Actor is placed.
- From the model tree, drag "Card payment" onto an empty part of the canvas: it is placed a second time.
Rename in place¶
Double-click an element's box, or select it and press F2, and type its name: Enter keeps it, Esc drops it, and undo brings the old one back. A relationship is named the same way on its line: double-click the line, or its name. A relationship's name emptied is removed. A name is typed in its own font, where it is drawn. A view reference opens its view when double-clicked: press F2 to rename the view.
A name is drawn on as many lines as its box holds, and at least three. When it is longer, the last line shown ends in "…": make the box taller, or fit it to its text.
- Double-click "Gift wrapping".
- Type "Gift wrap service", and press Enter.
- Press Ctrl+Z (Cmd+Z on a Mac): the old name is back.
Connecting¶
Select an element: its context pad, beside it, has Connect. Drag from it to the target, or click it and then the target. A blue preview line follows the pointer across empty canvas, including when you move away from a target. It meets the target's outline when hovered; completing the connection or pressing Esc removes the preview. Only the targets the metamodel permits accept the line, and the relationship drawn is the type it ranks first for the two; Change relationship type changes it after. A relationship type chosen in the palette first is drawn instead, when permitted. A line that is not permitted is refused, and the message says which types are: Realization is not permitted from Application Component to Application Component. Permitted: Aggregation, …
| Pad entry | For |
|---|---|
| Delete from view | an element, a relationship or a view reference: takes it off this view |
| Delete from model (all views) | an element or a relationship: see Delete |
| Delete view from model… | a view reference: deletes its view, as the model tree does |
| Connect | an element or a view reference: draws a relationship from it |
| Append element | an element: a new or related element, connected to it |
| Change relationship type: Serving | a relationship: the types permitted between its ends |
| Zoom in | an element or a relationship a view refines: opens the view, or lists them (Zoom in) |
| Draw a line to… | a group, a note or a shape: a line that is no relationship |
| Open view | a view reference: opens the view it references |
| Connect these two… | two elements selected, or an element and a view reference |
- Select "Payments".
- Drag from Connect in its pad to "Online ordering". A Realization is drawn — the type ArchiMate 4.0 ranks first from an Application Component to a Service — and Change relationship type opens on it: every type the two permit, best first: Realization, Serving, Assignment, Triggering, Flow, Association, Directed Association.
- Escape keeps the Realization; choose Serving to make it one. The line and the type picked are one step: Ctrl+Z (Cmd+Z) takes the line away. Later, select the line and choose Change relationship type in its pad. To draw a Serving at once, click Serving in the palette first: then no menu opens.
The order of the types¶
The types a pair permits come in three groups, and within each in the metamodel's order of proposal:
| Group | Note in the menu | Example (ArchiMate 4.0) |
|---|---|---|
| what the relationship tables let you draw directly | — | Process → Process: Triggering, Flow, Composition, Aggregation |
| what they permit only as the conclusion of a derivation | only by derivation | Application Component → Process: Assignment |
| Association and Directed Association | always permitted | last — except to a Meaning or a Value, where Association comes first |
Between two concepts that no loaded metamodel relates — an element of one metamodel and an element of another, two of a metamodel that defines no relationship types, or an element and a view — la-gram offers the core's own relationship types, each always permitted: Association, which has no direction, then Depends On, Has Part and Refines. Where a loaded metamodel permits anything between the two, they are not offered, and they are not in the palette.
A language's own relationship types relate its own elements. Between a C4 container and an EDGY capability neither C4's Uses nor EDGY's Link is offered: the core's are, and Change relationship type on a line drawn between them before offers the core's too. An extension's link that may end at any concept, such as a decision's Modifies, is offered there instead of the core's. A relationship type its metamodel marks abstract, such as EDGY's Enterprise Relationship, is never offered: its kinds are. Depends On is drawn dashed, from the concept that needs the other to the one it needs; Has Part from the whole to its part; Refines from the more concrete concept to the one it refines. Each has an open arrowhead at its target, and nesting may draw Has Part or Refines instead (Nesting).
Connecting an ArchiMate element and an ATAM risk
With ArchiMate 4.0 and ATAM loaded, drag the Connect handle from the Application Component "Billing" to the Architectural Risk "Latency under load": the line is an Association, and its menu offers Depends On, Has Part and Refines too.
A relationship type whose metamodel publishes no notation — a decision's Modifies, a process's Precedes, an evaluation's Identified Risk — is drawn as a solid line with an open arrowhead at its target. The core's Association is a plain line.
The order of proposal is the metamodel's, published with it: an order for every pair, and orders for kinds of element that come before it. ArchiMate 4.0's and 3.2's are the same:
| From | To | First |
|---|---|---|
| a behaviour element | a behaviour element | Triggering, Flow, then Composition, Aggregation |
| a process, function or interaction | a service | Realization |
| an actor, role, collaboration, component, node, device, system software, equipment or facility | a service | Realization, then Serving, Assignment |
| a capability, value stream or course of action | one of those | Realization, then Serving |
| a capability | a capability | Composition |
| a collaboration | an actor, role, component, node… | Aggregation |
| a motivation element | a motivation element | Realization, then Influence |
| any other element | a Meaning or a Value | Association |
| a grouping, location, product or plateau | any element | Aggregation |
| anything else | the strongest first: Composition, Aggregation, Assignment, Realization, Serving, Access, Influence, Triggering, Flow, Specialization |
drawn in the metamodel marks a type the specification's metamodel figures draw between the two elements; it does not change the order. From an interface to a service the tables let you draw an Assignment directly, so it comes before what only a derivation gives: an Application Interface to a Service, Assignment. In ArchiMate 3.2, across layers, the tables permit Triggering and Flow between behaviour elements only as derived, so the Realization they permit directly comes first: an Application Process to a Business Process, Realization.
Append¶
Append element, in the context pad, opens a menu of what can follow the element, in two tabs:
| Tab | Lists |
|---|---|
| New element | the element types a relationship from it may reach, by domain, each with its relationships (choose: Assignment / Serving / Flow / Triggering) or the one it would be (via Influence): first the element's own type, then its own domain, then the others in the palette's order; within a domain, the types most like it first — after a process, a function, a service, an event, then a role |
| Existing relationships (N) | what the element is already related to in the model, to bring into this view |
A new element is placed beside it, connected. When several relationships fit, la-gram asks Which relationship?.
- Select "Web shop", and choose Append element in its pad.
- Under Application Domain, choose Data Object.
- Choose Access when asked Which relationship?. A Data Object is placed, with the access drawn to it.
Change relationship type¶
A selected relationship's pad has Change relationship type: and its type (Change relationship type: Serving, say), which opens Change relationship type: the types the metamodel permits between its two ends, each saying why it is allowed. The right-click menu's Change relationship type… does the same. The relationship keeps its identity, its name and its placements.
- Select the line from "Card payment" to "Web shop".
- Choose Change relationship type in its pad, and pick Flow.
Connect these two¶
With two elements selected, the pad offers Connect these two…, which lists the relationships allowed between them in both directions (Customer → Gift wrapping, then Gift wrapping → Customer), each saying why it is allowed: always permitted, only by derivation (the relationship tables permit it as the conclusion of a derivation, not drawn directly), or drawn in the metamodel (the language's metamodel figures draw it). Each direction is in the order of the types.
- Click "Customer", then Shift-click "Online ordering".
- Choose Connect these two… in the pad.
- Under "Customer → Online ordering", pick Association.
Lines from figures¶
A group, a note or a shape (see Shapes) has Draw a line to… in its pad. The line it draws, dashed, stands for no relationship: a note's to what it is about, an element or a view reference. Its Appearance tab makes it solid or dotted and puts an arrowhead, a diamond or a dot at either end (Line ends). Double-click it to write on it: the text sits at its middle, and can be dragged elsewhere.
- Open Shapes, and click and place a Note beside "Gift wrapping". Double-click it and type "Realized by nothing on purpose".
- Choose Draw a line to… in the note's pad, and click "Gift wrapping".
Nesting¶
Drop or move an element onto another to draw it inside. The drop asks Which relationship? the nesting stands for: those the notation lets nesting draw and the metamodel permits (composition, aggregation, assignment…), or None (Only drawn inside: no relationship in the model). The container grows to hold what is inside, keeps its name at the top, and moves with it.
While nested, no line runs between the element and its container: the nesting shows it. Moved out, the relationships the view showed are drawn as lines again. Relationships' lines and names are drawn above every element, nested ones included.
A view reference dropped into an element's box asks too: Has Part, the element having the view as a part (Payments → Who is who), Refines, the view refining the element (Who is who → Payments), or None. Nesting may draw the core's Has Part with the part inside the whole, and its Refines with the refining concept inside, so an element dropped into one that no loaded metamodel relates it to is offered both as well. Dropped into a group or a shape, nothing is asked.
- Drag "Web shop" onto "Payments"' empty corner, and drop it.
- Choose None when asked Which relationship?. "Web shop" is drawn inside "Payments", with no new relationship in the model.
- Undo to take it out again.
Reuse a relationship¶
Drawing a relationship the model already has between the two, but this view does not show, asks first: The model already has this relationship.
| Choice | Does |
|---|---|
| Use “Its name”, or Use the existing Serving | draws the relationship the model has: one relationship, in both views |
| New Serving | makes another relationship of this type between the two |
- Select the line from "Card payment" to "Web shop", and press Del: it is off the view, still in the model.
- In the palette, click Serving, then "Card payment", then "Web shop".
- Choose Use the existing Serving: the model still has one Serving between them, drawn again.
Relationship names¶
The Relationship names switch ("Tx" over a line between two ends) shows each named relationship's name on its line, at its middle, or near its source or its target where the line's Appearance tab (or its notation) puts it. It is off by default, remembered in this browser. A relationship without a name shows nothing.
Drag a name to move it: the view keeps where it is, as an arch-vis:LabelNode, and it follows its line as
the line moves. Right-click › Move name back to its place undoes that. All undoable.
- Double-click the line from "Web shop" to "Online ordering", type "serves online", and press Enter.
- Switch Relationship names on: the name is drawn at the line's middle.
- Drag the name up, out of the way.
Multiplicity¶
A relationship's multiplicity — how many may be at each end — is drawn by each end of its line that has one,
as the model writes it: 1, * (any number), 0..1, 1..*. It sits along the line just clear of the end's
marker, above the line, or to its right where the line runs straight up or down, in the line's colour. It is
drawn whether Relationship names is on or not, and faded with a derived line.
| Value | Means |
|---|---|
n |
exactly n |
* |
any number, none included |
n..m |
from n to m |
n..* |
n or more |
Give it in the property panel: on an ArchiMate 4.0 relationship, Source Multiplicity and Target
Multiplicity (am4:sourceMultiplicity, am4:targetMultiplicity) are under Suggested for ‹type›
(Properties); on a UML association, UML's; on a relationship of a language that defines
none, the core's (arch:sourceMultiplicity, arch:targetMultiplicity). The source multiplicity is the one at the
source end: on a line from A to B, how many A one B may be related to. Validation reports a value written
otherwise, an n..m whose m is less than n, two values at one end, and, in ArchiMate 4.0, a 0, an n..n and a
multiplicity at an end connected to a junction (Validation).
- Select the line from "Web shop" to "Online ordering".
- In the Properties tab, open Suggested for Realization, type
1for Source Multiplicity and1..*for Target Multiplicity, and press Enter after each:1is drawn by "Web shop",1..*by "Online ordering".
Shapes¶
The Shapes switch (a square, a circle and a triangle) opens a second row of figures, drawn with no model element behind them. It is closed by default, remembered in this browser.
| Figure | Drawn as |
|---|---|
| Group | a box with its name in a tab, holding what is put in it |
| Note | a sticky note |
| Rectangle, Rounded rectangle, Ellipse, Circle, Diamond, Hexagon, Octagon, Parallelogram | that shape |
Drag one onto the diagram, or click it and place it. Figures are renamed, moved, resized and deleted as elements are; selected, the Properties tab gives their text, and their look in the Appearance tab. Unlike an element's name, a figure's text can be emptied — in its Text, or on the canvas with F2 — and then nothing is drawn. A figure that sets no colours of its own is drawn neutral: a group light grey, a shape white, a note yellow. An ArchiMate Exchange file's groups, notes and the lines from them import as these.
- Click Shapes above the canvas.
- Drag Rounded rectangle onto the diagram, double-click it and type "Checkout".
View references¶
A view reference is a view's placement on another diagram, as an element's box is the element's: an index view's entry for each view it lists, or a box inside an element's for the view that details it. It is drawn as a blue-grey box with a small view in its top left, and shows the name of the view it opens.
| To | Do |
|---|---|
| make one | drag a view's row from the model tree onto the diagram; or right-click the row and choose Reference in the open view, which puts it in the middle of what you see |
| put it inside an element, a group or a shape | let go of the row over it, or drag the reference into it; in an element's box, choose what that stands for: Has Part, Refines or None |
| open the view it references | double-click it, or choose Open view on its pad or in its right-click menu, or Open in the Properties tab |
| rename the view | press F2, or choose Rename in its right-click menu: every reference to the view shows the new name |
| give it text of its own | type in Text in the Properties tab; empty it to show no text at all, and choose × beside Text to show the view's name again |
| point it at another view | choose Change… under Opens in the Properties tab, and pick the view |
| relate its view to an element | choose Connect in its pad and click the element, or draw a line from the element to it |
| delete its view | choose Delete view from model… in its pad or its right-click menu |
A new reference is 120 × 55, selected, and one step to undo. Only a diagram takes one: with a catalog or a matrix open, nothing is made, and the open view's own row makes nothing on its own diagram — let go there, la-gram says This is the open view: drag it onto another view's diagram to reference it. A reference follows the view's name: renamed in the tree, in the Properties tab, on a reference or by a collaborator, every reference to it shows the new name, unless it has text of its own. It is moved, resized, coloured, given a picture and deleted from the view as a note is. Nothing goes inside a reference.
A line drawn to or from a reference is a relationship with its view: of the type the loaded metamodels rank first between the two — ArchiMate relates no view, so the core's Association, then Depends On, Has Part and Refines (Connecting) — written in the model and drawn between the two boxes. A type picked in the palette is drawn when the two permit it. Made, a reference draws its view's relationships to what the diagram shows, as a placed element does; pointed at another view, it loses the lines of the old view's relationships. A line from a note, a group or a shape to a reference is no relationship.
The view it opens is presented in the view holding it (arch:inView), from its first reference there to
its last. Deleting the view deletes the references to it and the relationships with it
(Delete a view); taken off the view, a reference leaves its view and
its relationships in the model. Pasted into a model without that view, a reference becomes a note with
its text, and its view's relationships are left out. One whose view is not in the model opens nothing,
and says The view this reference opens is not in the model.; validation reports it too. An ArchiMate
Exchange file's references to its views, and a converted model's, are view references.
Selected, a reference selects its view: the Properties tab shows the view — its View information, Properties, Analysis (its relationships) and Appears in views — and the model tree its row. Under the view's information come the reference's own Text — the view's name, greyed, while it has none of its own — and Opens, the name of the view it opens, with two buttons:
| Button | Does |
|---|---|
| Open | opens the view it references, as a double-click does |
| Change… | lists the model's other diagrams, catalogs and matrices, by kind, to search by name; the one picked becomes the view it opens, one step to undo, its text of its own kept |
- Right-click Who is who in the model tree, and choose Reference in the open view: a box named "Who is who" is drawn in the middle of the diagram, selected, and the Properties tab shows the catalog.
- Double-click it: the catalog Who is who opens. Press Alt+Left to come back.
- Drag the Who is who row from the tree onto "Payments"' empty corner, and let go: another reference to it is drawn inside "Payments", and la-gram asks Which relationship?.
- Choose Refines: the catalog refines "Payments", shown by the nesting.
Zoom in¶
An element or a relationship a view refines — arch:refines, as Refines writes it, or
arch:refinedInto, as another tool may — has Zoom in in its pad, whether or not a reference to the
view is drawn: it opens the view, or, refined by several, lists them by name, and the one picked opens.
Its right-click menu has Zoom in: Who is who for each. Alt+Left comes back.
- After the steps above, select "Payments".
- Choose Zoom in in its pad: Who is who opens.
- Press Alt+Left: back to the diagram.
Move, resize and bend¶
Drag an element to move it, with its lines; a selection moves together. Drag a selected element's corner handles to resize it. Drag a line's segment to add a bendpoint, and a bendpoint to move it. A move snaps to line up with the elements around it. A straight line stays aimed at the two elements' centres; a line of right angles — as Arrange view draws them — keeps its right angles: the bend next to the moved element follows it, and where it would end up inside an element, the line is routed again at right angles. A straight line Arrange view drew between elements one above the other stays straight while they stay in line, and turns a right angle when one moves aside.
- Drag "Gift wrapping" a little to the right: its line follows.
- Select it and drag its bottom right handle to make it wider.
- Drag the middle of its line to "Customer" sideways: the line bends.
Arrange view¶
Arrange view…, on the canvas toolbar or in the empty canvas's right-click menu, lays the open diagram out: its elements in rows, in the direction its relationships lead, each at its present size and each nested element inside its parent; its relationships routed at right angles, as Arrange relationships routes them — from the middle of a side, bending clear of the elements — in a diagram of up to 500 elements. A relationship ending on another relationship keeps its line docked to that one. With elements selected, it can arrange only those, with what is nested in them, keeping them where their top left was. It is one step to undo and one change for collaborators, and it says what it did: Arranged 8 elements and 8 relationships.
| Field | Does | Values |
|---|---|---|
| Arrange | what is laid out; shown when elements are selected | The selected element, and what is in it (The 2 selected, and what is in them for two), The whole view |
| Direction | the way relationships lead, from their source to their target. An Association, which has no direction in ArchiMate, does not decide which of its ends comes first | Down, Right, Up, Left |
| Spacing | the room between elements side by side, and between rows | Compact (30 px, 50 px), Normal (50 px, 80 px), Roomy (80 px, 120 px) |
| Group by band | keeps elements in the bands their metamodel orders, in the direction chosen (with Down, the first band at the top). Shown when a loaded metamodel orders bands | on |
The bands are the groups a metamodel's manifest lists for its diagrams (arch:diagramGroupOrder):
| Language | Bands, in order |
|---|---|
| ArchiMate 4.0 | Motivation, Strategy, Business, Application, Technology, Implementation and Migration |
| ArchiMate 3.2 | Motivation, Strategy, Business, Application, Technology (its physical elements included), Implementation and Migration |
An element of no band — in ArchiMate 4.0, a Common Domain element such as a process, a service or a role, or a grouping — goes into the band most of what it holds is in, else the band most of what it is related to is in; on a tie, the upper. The choices are remembered in this browser (Stored data). The same diagram arranged twice with the same choices is placed the same, to the pixel.
- Click Arrange view… in the canvas toolbar.
- Leave Down, Normal and Group by band, and choose Arrange: Customer and Shop team, business actors, are above Payments, an application component, and the lines run at right angles.
- Press Ctrl+Z (Cmd+Z): the diagram is back as it was.
Large diagrams
The layout runs in the background, and la-gram keeps responding while it runs: on an Apple M4 Pro in Chrome, a diagram of 100 elements is arranged in under half a second, 500 elements with 1 000 relationships in about 3 seconds, 2 000 with 4 000 in about 7. Routing the lines and drawing the result pause the canvas for about a second and a half at 500 elements, and 2 seconds at 2 000. Above 500 elements, the lines are routed by the layout itself, which may dock them nearer a corner and bend them nearer the elements: Arrange relationships routes them afterwards. Above 2 000 elements, or when the layout fails or takes more than 10 seconds, the elements are placed in a grid instead, and the message says why: Arranged 2100 elements; too many elements for the layered layout: placed in a grid.
A model opened with no diagram geometry, and a diagram made with Render as new view, are laid out the same way, with the choices last made here.
Tidy a diagram¶
To tidy a diagram without laying it out again, la-gram offers seven more ways to arrange it, each one step to undo:
- Arrange relationships: the lines are routed again at right angles, around the elements in their way. The elements stay where they are.
- Line shape: the selected lines are made straight, routed at right angles, or bent once.
- Order: the selected elements and shapes are drawn in front of, or behind, the ones they overlap.
- Align and distribute: the selected elements are lined up, or spaced with equal gaps.
- Align to grid: each element's top-left corner moves to the nearest grid line.
- Sizes: the selected elements are made the same size, or each is reset to its default size.
- Fit to text: each selected element is made big enough to show all of its name.
The dialogs open from ▾ beside Arrange view… in the canvas toolbar, and from the empty canvas's right-click menu. The quick actions, buttons in the canvas toolbar after ▾, act at once on what is selected, using what the dialogs last chose:
| Button | Does | Needs |
|---|---|---|
| Align left, Align centre, Align right | moves the selected elements' left edges to the leftmost, their centres to the selection's centre, or their right edges to the rightmost | 2 selected |
| Align top, Align middle, Align bottom | the same, up and down | 2 selected |
| Distribute horizontally, Distribute vertically | makes the gaps between neighbours equal; the first and the last stay where they are | 3 selected |
| Match width, Match height, Match size | makes them as wide, as high, or both, as what Sizes… last chose (the largest at first) | 2 selected |
| Default size | each its default size | — (the whole view when nothing is selected) |
| Fit to text | each the size that shows all of its text, changing what was last picked from ▾ beside it or in Sizes… (width and height at first) | — (the whole view when nothing is selected) |
| Align to grid | to the grid Align to grid… last chose (20 px, across and down, at first) | — (the whole view when nothing is selected) |
| Arrange relationships | routes the selected lines and the selected elements' lines again | — (every line of the view when nothing is selected) |
| Line shape | opens the menu of line shapes for the selected lines | 1 line selected |
A button whose selection is too small is greyed out. Its tooltip says the size or grid it uses. What is inside a selected element moves with it, and an element another collaborator is editing stays where it is.
Arrange relationships…¶
The lines are routed again at right angles, around the elements and shapes in their way, keeping a margin; the elements stay where they are. Each line has as few bends as the elements in its way allow. It leaves and reaches an element at the middle of a side, or, between two elements facing each other, runs straight, from the middle of the smaller one. Where it bends, it bends clear of the elements, in the middle of the gap it runs through, and it takes a longer way round rather than cross other lines, though not an extra bend for one or two crossings, and never loops out and back where it could run on. The lines on one side of an element dock so that none crosses another as it leaves — one turning up docks above the straight lines it would cross, and beside one that ends before it turns — as near the middle as that allows: not crossing comes first, and no two lines leave from one point. Lines sharing a gap run side by side. A line between elements that overlap, or between an element and something inside it, keeps its route. la-gram says how many lines it routed: Arranged 2 relationships.
When only some lines are routed, the view's other lines stay where they are, and the routed ones go around them as around lines already routed: crossing as few as they can, leaving an element beside them rather than on top of them, and running beside them where they share a gap.
| Field | Does | Values |
|---|---|---|
| Arrange | which lines; shown when elements or lines are selected | The relationships of the selected element (of the 2 selected for two; The selected line when only a line is selected), Every relationship of the view |
- Select nothing, and choose ▾ › Arrange relationships… in the canvas toolbar.
- Choose Arrange: the lines run around the elements; the elements have not moved.
Line shape¶
Line shape gives the selected lines a shape, as one step to undo. Select a line, then choose the Line shape button after Arrange relationships in the canvas toolbar, or right-click the line. The menu shows each shape with a picture of it:
| Shape | The line |
|---|---|
| Straight | has no bends: it runs from the centre of one element towards the centre of the other, ending on their outlines, as a new line does |
| Right angles | is routed as Arrange relationships routes it: at right angles, around the elements in its way. The view's other lines stay where they are, and the line goes around them |
| Horizontal first | bends once: it leaves its source from the side facing the target, at the middle, and enters the target from above or below, at the middle |
| Vertical first | bends once: it leaves its source from the top or the bottom, at the middle, and enters the target from the side, at the middle |
Horizontal first and Vertical first bend at the corner of the two elements' centres, and do not go around other elements: Right angles does. Where that corner would be inside one of the two, because they are side by side or one above the other, the line runs straight between their facing sides.
With several lines selected, each gets the shape; right-clicking one of them keeps the others selected. la-gram says what it did: Shaped 2 lines., or The line is shaped so already. A line ending on another line or on its own element, and one another collaborator is editing, keeps its route; so does a line between elements that overlap, or between an element and something inside it, except with Straight. la-gram says how many it left: Shaped 1 line; 1 left as it is.
The shape is the line's route, as if its bends had been dragged there: moving an element afterwards moves the line as described in Move, resize and bend. A line of right angles keeps them.
- Move "Gift wrapping" below and to the right of "Customer".
- Select its line to "Customer", and choose Line shape › Vertical first in the canvas toolbar: the line leaves "Gift wrapping" upwards, and turns into the side of "Customer".
- Right-click the line and choose Straight: the bend is gone.
Order¶
Where elements and shapes overlap, Order says which is drawn on top: a shape behind the elements it frames, a note in front of what it covers. Select one or more, then choose Order in the canvas toolbar, right-click one of them, or press the keys:
| Choose | Keys (Windows and Linux / macOS) | The selected |
|---|---|---|
| Bring to front | Ctrl+Shift+] / Shift+Cmd+] | above everything beside them; several keep their order among themselves |
| Bring forward | Ctrl+] / Cmd+] | above the next one each overlaps, and no further |
| Send backward | Ctrl+[ / Cmd+[ | below the next one each overlaps |
| Send to back | Ctrl+Shift+[ / Shift+Cmd+[ | below everything beside them |
"Beside them" means in the same place: the diagram itself, or the inside of the same element or group. Whatever is inside something is always drawn in front of it, and lines are always drawn over shapes. What is inside a selected element moves with it, and something another collaborator is editing stays where it is. When nothing changes, la-gram says why: Already in front., or Nothing it overlaps is drawn above it.
The order is saved with the view, so it is the same after you open the model again, in a collaborator's window, and in any tool that reads it. Moving a shape keeps its place in the order: it does not come to the front. Something new — placed from the palette or the model tree, appended, pasted or duplicated — goes in front of what it lands on, and so does something you move into, or out of, an element or a group. Each change is one step to undo.
- Place a Grouping from the palette over "Customer" and "Place order": it is drawn in front of them.
- With the grouping selected, choose Order › Send to back: the two elements are drawn over it.
- Press Ctrl+Z (Cmd+Z): the grouping is in front again.
Align to grid…¶
Each element's top-left corner moves to the nearest line of the grid. What is inside an element is aligned from where moving the element put it.
| Field | Does | Values |
|---|---|---|
| Arrange | what is aligned; shown when elements are selected | The selected element (The 2 selected for two), The whole view |
| Grid | the distance between grid lines | 10 px, 20 px, 40 px |
| Align | which way | Across and down (x and y), Across only (x), Down only (y) |
- Drag "Customer" a little to the right; it stays selected.
- Choose ▾ › Align to grid…, leave The selected element, 20 px and Across and down, and choose Align: Aligned 1 element to the 20 px grid.
- Choose ▾ › Align to grid… again with Grid 40 px: the Align to grid button now uses 40 px.
Sizes…¶
The selected elements are made the same width, height or both, or each its default size, or each fitted to its text; each keeps its centre, and an element that holds others is never made smaller than what it holds. With nothing selected, Each its default size and Each fit to its text are possible, and they act on every element of the view.
| Field | Does | Values |
|---|---|---|
| Make them | the size they take | The largest, The smallest, The median (of an even number, the mean of the middle two), Each its default size — an element its type's, a group, note or shape its kind's — Each fit to its text (Fit to text) |
| Change | which dimension; the default size sets both | Width and height, Width, Height |
- Select "Customer" and "Shop team", and choose ▾ › Sizes….
- Choose Make them The median, and Resize. The Match buttons now match to the median.
- Choose ▾ › Sizes… again, Make them Each fit to its text and Change Height, and Resize. The Fit to text button now changes the height only.
Fit to text¶
Fit to text makes an element big enough to show all of its name, or a group, note or shape all of its text. Right-click it and choose one of three entries, or choose the Fit to text button in the canvas toolbar or one of the same three from ▾ beside it, or Each fit to its text in Sizes…:
| Entry | Changes | Does |
|---|---|---|
| Fit to text | the width and the height | grows the element from its default size, keeping the default's proportions, until the text shows; then makes it no taller than the text needs |
| Fit width to text | the width | keeps the height, and takes the least width that shows the text |
| Fit height to text | the height | keeps the width, and takes the least height that shows the text |
The Fit to text button changes what was last picked from ▾ beside it, or under Change for Each fit to its text in Sizes…: Width and height at first. Its tooltip says which, its picture shows it, and ▾'s menu marks it.
- It acts on the selected elements — the one right-clicked, or every one selected with it — or, from the button or Sizes… with nothing selected, on every element of the view.
- An element is never made smaller than its default size, so fitting an element with a short name makes it its default size again. Each keeps its centre, and an element that holds others is never made smaller than what it holds.
- An element with no text, and a junction, whose name is drawn under it, stay as they are. So does an element whose text does not fit along what is changed: the name of an element holding others is on two lines at its top, and the name of an element drawn as its icon is on three lines under it, so their height alone does not fit them. la-gram says how many it fitted, and which it left as they are and why: Fitted 2 elements to their text., It fits its text already., 1 element left as it is: its height alone does not show all of its text — fit its width, or both.
-
It is one step to undo. A box is fitted when you ask: renaming an element keeps its size.
-
Double-click "Gift wrapping", type "Gift wrapping and a personal card for every order placed before noon", and press Enter: the name ends in "…".
- Right-click it, and choose Fit height to text: the box grows taller, as wide as it was, and shows all of the name.
- Press Ctrl+Z (Cmd+Z on a Mac), and choose Fit to text instead: the box grows wider and taller.
- Press Ctrl+Z again, select "Gift wrapping", and choose ▾ › Fit width to text beside the Fit to text button in the canvas toolbar: the box grows wider, as high as it was. The button now fits the width.
The choices of Align to grid… and Sizes… are remembered in this browser (Stored data).
Large diagrams
Arrange relationships works out the routes before it draws them, and the canvas pauses meanwhile: on an Apple M4 Pro, under a tenth of a second for 200 lines, up to 2 seconds for 1 000, and about 4 seconds for 4 000.
Search¶
Ctrl+F (Cmd+F on a Mac), or 🔍 in the canvas toolbar, opens a find bar over the diagram's top right. Type to search the open diagram: elements and relationships by their names and by their types' names, and notes, groups, shapes and view references by their text. Case does not matter, and the text may be anywhere in a name: "pay" finds "Payments" and "Card payment", and "application component" finds every application component.
Every match is outlined in orange. The current one has the stronger outline: it is selected, so the Properties tab shows it, and scrolled into view. The matches go from top to bottom, and left to right across a row.
| In the find bar | Does |
|---|---|
| 3 of 7 | the current match, and how many there are; No matches when none |
| ↓ or Enter | the next match; after the last, the first |
| ↑ or Shift+Enter | the previous match |
| Select all | selects every match, to move, align or style them together; the bar stays open |
| 4 more in other views | shown when the model has elements or relationships that match but are not in this view: opens the model tree, filtered by the same text, its conditions cleared |
| × or Esc | closes the bar; the outlines go, the selection stays |
The search follows the diagram: after an edit, an undo, a collaborator's change or another view, it searches again and keeps the current match while it still matches. Opened again, the bar holds its last text. Ctrl+F in the model tree focuses its filter instead, and in the RDF panel opens its own search; with a catalog or a matrix open, the browser's find works as usual.
- Click the empty canvas, and press Ctrl+F (Cmd+F).
- Type "pay": "Card payment" is selected, 1 of 2.
- Press Enter: "Payments", below it, is selected, 2 of 2.
- Choose Select all, then press Esc: both stay selected.
Placed twice¶
As ArchiMate allows, an element can be placed more than once on a view: drag it from the model tree onto a view that already shows it. Each placement moves, nests and is deleted on its own, and lines join the placements they were drawn between; a relationship can be drawn again from another placement. Clicking one placement selects every placement of the element.
- Drag "Customer" from the model tree onto the diagram, apart from the one there.
- Click either: both are selected.
Copy and paste¶
Copy what is selected on a diagram — elements, groups, notes and shapes, with what is nested in them and the lines between them — and paste it into this view, another view, or another model. A line goes with its two ends: a relationship with only one end selected is not copied.
| Keys (Windows and Linux / macOS) | Right-click menu | Does |
|---|---|---|
| Ctrl+C / Cmd+C | Copy | copies the selection |
| Ctrl+X / Cmd+X | Cut | copies it, then deletes it from the view; the model keeps it |
| Ctrl+V / Cmd+V | Paste | pastes by where it goes (below) |
| Ctrl+Shift+V / Shift+Cmd+V | Paste as copies | always makes new elements and relationships |
| Ctrl+Alt+V / Alt+Cmd+V | Paste as references | always places the same elements again |
| Ctrl+D / Cmd+D | Duplicate | pastes the selection as copies into this view, 20 px right and down; the clipboard keeps what it held |
Paste decides by where it goes:
| Pasted into | Is |
|---|---|
| another view of the model it was copied from | the same elements and relationships, placed again: nothing new in the model |
| the view it was copied from | copies: new elements and relationships |
| another model | copies, always — Paste as references says so and makes copies |
- A copy is a new element or relationship of the same type, with the original's names, in every language, and its definition. Its other properties are left out, and la-gram says how many. In the model it was copied from, a copy goes into the original's folder.
- A reference is the element itself, placed again: pasted into the view it came from, the element is placed a second time (Placed twice). One deleted from the model since it was copied is pasted as a copy, and la-gram says so.
- Where: at the pointer when it is over the diagram; otherwise where it was copied from, 20 px right and down, and 20 px further for each paste of the same copy. Lines keep their bends and moved names, and nesting is kept.
- Into another model, la-gram asks about elements of types the model's metamodels do not define: Paste them, unclassified or Leave them out. A relationship the model's rules do not permit between its two ends is left out. What was left out is said.
- What was pasted is selected, and la-gram says what it did: Pasted 2 new elements and 1 new relationship; 1 property left out. or Placed 2 elements and 1 relationship again. One paste is one step to undo.
- Another window: Ctrl+V (Cmd+V) pastes what another la-gram window copied. Paste as copies, Paste as references, Duplicate and the menu's Paste paste what this window copied last, or last pasted.
- A text editor: pasting there gives the copy as Turtle.
-
From the model tree: Copy in a row's right-click menu, or Ctrl+C (Cmd+C) with rows selected, copies elements and relationships without their places; pasted into a diagram, they go in rows of six at each type's own size (Model tree › Menus).
-
Drag a rectangle round "Customer" and "Place order", and press Ctrl+C (Cmd+C).
- Open another diagram view, point at an empty part of it, and press Ctrl+V (Cmd+V): the same two elements are placed there, and la-gram says Placed 2 elements … again.
- Press Ctrl+D (Cmd+D): two new elements, copies of them, appear beside them.
- Undo: the copies are gone.
Delete¶
| From | Does |
|---|---|
| Delete from view, or Del / Backspace | takes the selection off this view; the model keeps it |
| Delete from model (all views) in the pad, Delete from model… in the right-click menu | removes it from the model and from every view |
Deleting from the model asks first, in Delete element from model (or Delete relationship from model): "Web shop" will be removed from the model and from every view it appears in, with the views listed and, for an element, — and every relationship connected to it. Delete from model confirms. Both are undoable from the canvas. A group, a note or a shape has Delete only: it is in no model. A view reference has Delete from view, and Delete view from model…, which deletes its view as the model tree does (Delete a view).
- Select "Gift wrapping", and choose Delete from model (all views) in its pad.
- Read the views it is in, and choose Delete from model.
- Undo: it is back, with its relationship.
Undo and redo¶
↶ and ↷ in the toolbar, or the keys, undo and redo what was done on the canvas, in the Properties tab and in the model tree: placements, moves, model-level deletes, property edits, folder changes, an Arrange view…. A line drawn with Connect and the type then picked from the menu it opened are one step.
| Keys | Does |
|---|---|
| Ctrl+Z | undo |
| Ctrl+Y or Ctrl+Shift+Z | redo |
| Keys | Does |
|---|---|
| Cmd+Z | undo |
| Cmd+Y or Shift+Cmd+Z | redo |
The toolbar's tooltips say Undo (Ctrl+Z) and Redo (Ctrl+Y) on every platform; on a Mac the keys are Cmd+Z and Cmd+Y.
What undo does not cover:
- The undo history belongs to the open view: it starts again when another view opens.
- Changes that do not come from the canvas are not on it: a collaborator's edit, an opened or imported file, and a model-level delete from the model tree of a concept the open view does not show.
To try it:
- Move "Customer".
- Press Ctrl+Z (Cmd+Z): it is back where it was.
- Press Ctrl+Y (Cmd+Y): moved again.
Right-click menu¶
Right-click on the canvas for what applies to what is under the pointer.
| On | Entries |
|---|---|
| an element | Rename (F2), Change type…, Cut, Copy, Paste, Paste as copies, Paste as references (once something is copied), Duplicate, Append…, Fit to text, Fit width to text, Fit height to text (Fit to text), Bring to front, Bring forward, Send backward, Send to back (Order), Zoom in: … (for each view refining it), Move to folder… (when the model has folders), Properties, Show in model tree, Show relationship graph, Ask about this element…, Copy IRI, Delete from view, Delete from model… |
| a relationship | Rename (F2), Move name back to its place (when its name was moved), Change relationship type…, Paste, Paste as copies, Paste as references (once something is copied), Straight, Right angles, Horizontal first, Vertical first (Line shape), Zoom in: … (for each view refining it), Move to folder…, Properties, Show in model tree, Show source, Show target, Copy IRI, Delete from view, Delete from model… |
| a line from a figure | Straight, Right angles, Horizontal first, Vertical first (Line shape), Properties, Copy IRI, Delete from view |
| a group, a note or a shape | Cut, Copy, the three pastes (once something is copied), Duplicate, the three Fit to text entries (when it has text), the four Order entries, Properties, Copy IRI, Delete from view |
| a view reference | Open view, Open beside (Two views at once), Rename (F2: the view's name), Cut, Copy, the three pastes (once something is copied), Duplicate, the three Fit to text entries, the four Order entries, Properties, Show in model tree and Copy IRI — the view's — Delete from view, Delete view from model… (View references) |
| the empty canvas (the open view) | Rename view…, Set viewpoint…, Duplicate view, Arrange view…, Arrange relationships…, Align to grid…, Sizes…, Paste, Paste as copies, Paste as references (once something is copied), Select all, Zoom to fit, View properties, Show in model tree, Copy IRI, Copy view as PNG, Copy view as SVG, Export view as SVG, Export view as PNG, Delete view… |
| one of several selected | elements: Cut, Copy, the three pastes (once something is copied), Duplicate, Move 2 elements to folder… when the model has folders, the three Fit to text entries and the four Order entries, for every one selected; groups, notes and shapes: the same, but for the folder; relationships: the three pastes (once something is copied), Move 2 relationships to folder… when the model has folders, and the four line shapes, for every selected line; lines from figures: the four line shapes |
What the entries do beyond the canvas:
| Entry | Does |
|---|---|
| Properties, View properties | selects it and opens the Properties tab |
| Show in model tree | shows the model tree, and the row, unfolded |
| Show relationship graph | opens the Graph tab with it at the centre |
| Ask about this element… | opens the SPARQL tab's Questions menu with the questions about it |
| Copy IRI | copies its IRI, and says IRI copied |
| Show source, Show target | selects the relationship's end, opening a view that shows it if this one does not |
| Zoom in: … | opens the view that refines it (Zoom in); Alt+Left comes back |
| Delete view from model… | on a view reference: deletes its view, as Delete a view |
| Copy view as PNG, Copy view as SVG | puts the diagram on the clipboard, to paste into a document, a slide or a drawing, as File › Export view › Copy as PNG |
| Export view as SVG, Export view as PNG | as File › Export view |
- Right-click "Gift wrapping", and choose Ask about this element….
- The SPARQL tab opens, with the questions about "Gift wrapping".