Model tree and folders¶
The model tree, on the left, shows the whole model the way the store holds it, whatever the open view draws: its views, its elements and its relationships. ☰ Model in the toolbar hides and shows it. Its header — Model, Follow the selection and Folders | Types — and the filter under it stay at the top while the rows scroll.
Groups¶
| Group | Holds |
|---|---|
| Views | every view, the open one in bold, a catalog or matrix with its kind |
| Elements | the elements, by type, each type with its count |
| Relationships | the relationships, by type, each written Source → Target |
| Unclassified | concepts whose types no loaded metamodel defines: an unloaded language's, or a file's own; shown only when there are some |
| Derived relationships | relationships a derivation rule concluded and the model does not state, under Valid and Potential; shown only when the model's file brings some (see Derived relationships) |
The groups and the types fold; a folded group keeps its count. Relationships and Derived relationships start folded, and unfold while the filter keeps any of what they hold.
- Open the example model. Elements lists Application Component (2), Business Actor (2), Node (1), Process (1) and Service (4).
- Unfold Relationships: Serving lists "Card payment → Web shop", "Gift wrapping → Customer", "Hosting → Payments", "Hosting → Web shop" and "Online ordering → Place order".
Row icons¶
Each row shows what it is, as the canvas draws it for the Presentation chosen in the toolbar:
| Row | Icon |
|---|---|
| an element, an element type | its type's colour, with its glyph on it; a type without a glyph, its figure in its colours |
| an element with a picture of its own | its picture for the presentation chosen |
| a relationship, a relationship type | its type's line and ends: dotted, dashed, an arrowhead, a diamond |
| a folder | a folder, open while unfolded |
| a view | a diagram, a catalog or a matrix |
| a concept of a type no loaded notation draws | ■ for an element, → for a relationship, ? for an unclassified concept |
- Open the example model: "Payments" and "Web shop" are light blue, with the application component's glyph; "Customer" and "Shop team" yellow, with the actor's.
- Unfold Relationships: Serving has an arrow, Realization a dotted line with a hollow triangle, Assignment a dot and an arrow.
Follow the selection¶
Follow the selection, the crosshair in the tree's header, says whether the tree shows what you select elsewhere:
| Value | Selecting on the canvas, in a catalog, or from the Graph or Validation tab |
|---|---|
| On (pressed) | marks the concept — each of them, when several are selected on the canvas — unfolds the folders around it, and scrolls to the first |
| Off | marks each row when it is in sight; nothing unfolds or scrolls |
On is the default; the choice is remembered in this browser. Switched on, the tree shows at once what is selected. Either way, Show in model tree on the canvas's right-click menu shows the concept in the tree, and a folder, a view or an element made in the tree is shown there. A move never takes the tree elsewhere: see Move to folder.
- Click the crosshair in the tree's header: it is no longer pressed.
- Fold Elements, and click "Payments" on the diagram: the tree stays as it is.
- Click the crosshair again: Elements unfolds, with "Payments" selected.
- Shift-click "Customer" on the diagram: "Payments" and "Customer" are both selected in the tree, and right-clicking either there offers Copy 2 elements.
Folders or types¶
Folders | Types, in the tree's header, switches how the groups are laid out:
| Choice | Lays out |
|---|---|
| Folders | the model's own folders in each group, each folded; subfolders, then concepts, by name; then what no folder holds, by type |
| Types | by type only, the folders left out |
Folders is the default, remembered in this browser. A model without folders is shown by type, and
Folders is greyed out until it has one. A model imported from an ArchiMate exchange file
(its folders), or converted from Archi or another tool that keeps folders, opens in
its folders. To keep an Archi model's folders, export it from Archi with --xmlexchange.exportFolders
before importing or converting it: without that option, Archi's exchange file has none.
- Open a model with folders.
- Click Types in the tree's header: the same concepts, by type.
- Click Folders to go back.
Filter¶
Filter by name, type or IRI…, under the header, keeps the rows that hold every word you type, in folded
folders too: each word in the row's name, in its type or the type or folder it is in, or in its IRI. In an
IRI a word is looked for in its last part, after the last / or # — m:web-shop's is web-shop — so
that a word of the model's namespace does not find every concept; a word with /, # or : in it, an IRI
pasted, is looked for in the whole IRI. A type or a folder whose own name holds every word keeps all that
is in it. Nothing matches. says when nothing does. Ctrl+F (Cmd+F on a Mac) in the tree puts the
cursor in it, and the diagram's search sets it with N more in other views.
- Type "pay" in Filter by name, type or IRI…. Under Elements, the tree shows "Payments" and "Card payment" only.
- Type "service pay": "Card payment" alone, the one service.
- Type "serving hosting": under Relationships, the two Serving relationships from "Hosting".
- Type "web-shop": "Web shop", and the five relationships whose IRI has it, such as
m:card-payment-serves-web-shop.
Filter options¶
The funnel beside the box, Filter options, opens a panel beside the tree: where the words are looked for, and conditions every concept shown meets. The tree stays in sight, and narrows as you choose. Done, Esc or a click outside the tree closes the panel; the conditions stay.
| Part | Values |
|---|---|
| Look for the words in | Names, Types and folders and IRIs, ticked; Definitions and Property values, unticked. Types and folders is the concept's type, a view's kind, and the groups and folders it is in; Property values, its other properties' values, a link's by the name of what it links to. One stays ticked. The box's text names them, Filter by name, type, IRI or definition…, and the choice is remembered in this browser |
| Show only › In no view | unticked; ticked, the elements and relationships no view holds, those whose Appears in views lists none |
| Show only › With findings | unticked; ticked, what the Validation tab has a finding for, of any severity, the model checks' once they have run |
| Show only, the types | the model's types, each with how many of its concepts are of it: element types under the palette's groups, then relationship types, Diagram views, Catalog views and Matrix views, and the types of unclassified concepts. None ticked: every type. A type ticked keeps its specializations too; a group's box ticks every type in it, and is half ticked while some are. A list of more than ten types has Filter types… over it |
| Properties | none; + Add a condition adds one. Its property, at Choose a property…, is one the model's concepts have, named as the Properties tab names it, with how many have it — Name and Definition always. Its test: has a value, is one of the values they have (with how many have it), contains the words typed, or has no value. × takes it away |
| Reset | takes every condition away, and looks for the words in names, types and folders, and IRIs again |
A concept is shown when it holds every word typed and meets every condition: one of the types ticked, in no view, with findings, and each property condition. Each condition in force is a chip under the box — In no view, Application Component, Owner has no value — with × to take it away, and Clear takes them all; the funnel says how many. The conditions are the open model's: opening another clears them, and so does the diagram's N more in other views, which shows in the tree what the search counted.
- Click the funnel beside Filter by name, type or IRI…, and tick In no view: the tree keeps "Shop server", "Hosting", and the five relationships from them.
- Tick Service, under Common Domain: "Hosting" alone, with the chips In no view and Service.
- Choose Clear, then tick With findings: "Gift wrapping", "Hosting", "Payments" and "Web shop", what the Validation tab lists.
With a property:
- Select "Web shop", and add Owner "Shop team" with + Add property.
- In Filter options, choose Reset, tick Application Component, then choose + Add a condition, Owner and has no value: "Payments" alone, the component without an owner.
- Choose is and Shop team: "Web shop".
- Choose Reset, tick Property values under Look for the words in, and type "team" in the box: "Web shop", whose owner is the Shop team, "Shop team", and its two Association relationships.
Select and open¶
| Gesture | On | Does |
|---|---|---|
| click | a row | selects it: on the canvas too, and in the Properties tab |
| Ctrl-click (Cmd on a Mac), Shift-click | rows | selects several |
| double-click | a view | opens it |
| double-click | an element or a relationship | shows it on the canvas, opening a view that has it when the open one does not |
| double-click | the model | opens Model settings |
- Double-click "Who is who" under Views: the catalog opens.
- Double-click "Gift wrapping" under Elements: the diagram opens again, with "Gift wrapping" selected.
Placed marker¶
A dot after a row marks a concept the open diagram draws (In the open view, it says on hover): an element, a relationship, or a view the diagram holds a view reference to. Rows with no dot are in the model, but not drawn in this view, and can be dragged onto it. A view's row dragged onto the diagram makes a view reference to that view where you let go; clicked, it selects the references to it there. A catalog or a matrix draws nothing, so with one open no row has the dot.
- Open the example's diagram: every element and relationship has the dot.
- Make a new diagram with + › New diagram: no row has it.
- Drag "Customer" from the tree onto the new diagram: its row has the dot again.
Menus¶
Right-click a row for its menu.
| On | Entries |
|---|---|
| the model | Rename model…, Model settings…, New diagram view, New catalog view, New matrix view |
| the Views group | New diagram view, New catalog view, New matrix view, New folder… |
| the Elements group | New element…, New folder… |
| the Relationships group | New folder… |
| a folder | of views: New diagram view, New catalog view, New matrix view; of elements: New element…; then New folder…, Rename…, Move to folder…, Delete folder (keeps its contents) |
| an element type, under Elements | New ‹type›…: New Business Actor… on Business Actor |
| a view | Open, Open beside (Two views at once), Select on canvas (when the open diagram references it), Reference in the open view (while another view, a diagram, is open), Rename…, Set viewpoint…, Duplicate, Move to folder…, Delete view (keeps its elements) |
| an element | Select on canvas (when the open view shows it) or Add to current view, Rename…, Copy, Move to folder…, Delete from model… |
| a relationship | Select on canvas or Add to current view, Confirm — state it in the model (a potential derivation), Show source, Show target, Rename…, Copy, Move to folder…, Delete from model… |
| one of several selected, in the tree or on the canvas | Copy 2 elements (or relationships), and Move 2 elements to folder… when the model has folders |
Copy copies elements and relationships to paste into a diagram — with, from several elements, the relationships between them — and la-gram says Copied 2 elements: paste into a diagram to place them.; Ctrl+C (Cmd+C) does the same for the rows selected. A derived relationship the model does not state is not copied. See Copy and paste. Move to folder… is offered once the model has a folder. Add to current view places the element on the open diagram; a relationship, when both its ends are there. Reference in the open view makes a view reference to the view in the middle of the open diagram.
- Open "Who is who", then right-click "Gift wrapping" under Elements.
- Choose Add to current view: la-gram says Open a diagram view to place it in., as a catalog is not one. Open the diagram and choose Select on canvas instead.
Folders¶
A model's folders are its own, saved with it (arch:Folder), and each group has its own: a folder of
views holds views, a folder of elements holds elements.
| Entry | Dialog | Does |
|---|---|---|
| New folder…, on a group or in a folder | New folder, Name (New folder) | makes a folder there |
| Rename…, on a folder | Rename folder, Name | renames it |
| Delete folder (keeps its contents) | Delete folder: What it holds stays in the model and moves to the folder above, or up to the top of its group | deletes the folder only |
Every folder change is one undoable step.
- Right-click Elements, and choose New folder….
- Name it "Applications", and choose OK.
- Right-click "Applications", and choose New folder… again: "Payments platform", inside it.
New views and elements¶
Make a view or an element where it belongs: right-click its folder, or its group.
| Entry | On | Asks | Makes |
|---|---|---|---|
| New diagram view, New catalog view, New matrix view | Views, or a folder of views | Name (New diagram, New catalog, New matrix), then the Viewpoint (— none —), as New view does | the view, in the folder, and opens it |
| New element… | Elements, or a folder of elements | New element: the element types of the loaded metamodels, under the palette's groups, with Filter…; then Name (the type's name) | the element, in the folder, in no view |
| New ‹type›… | an element type's row | Name (the type's name) | the element, of that type, in no folder |
Made from a group, a view or an element is in no folder. A new element is selected in the tree, its folder unfolded, and shown in the Properties tab: drag its row onto a diagram to draw it there. Making it and filing it are one undoable step. The Relationships group makes nothing new: draw a relationship between its two elements on a diagram.
- Right-click "Applications" under Elements, and choose New element….
- Type "app comp" in Filter…, choose Application Component, and OK.
- Name it "Fraud check", and choose OK: "Fraud check" is in "Applications", selected, with no dot.
- Drag it onto the diagram.
Move to folder¶
Move to folder… files a view, an element, a relationship or a folder. Its dialog, Move to folder, lists the group's folders, each with the folders it is in (in Applications ▸ Payments platform):
| Entry | Puts it |
|---|---|
| — No folder — | directly under the group, out of its folders |
| Recent | the last five folders you moved into, in this session, first |
| All folders | every folder of the group, by path |
| — At the top of Elements — | for a folder: at the top of its group |
A list of more than ten entries has Filter… over it, which keeps the entries whose name or path has every word you type.
Several at once: select them in the tree (Ctrl-, Cmd- or Shift-click), or on the canvas, and right-click one: the menu has Move 3 elements to folder… alone. The tree stays where it is: the folder they went into flashes, with its new count, and nothing unfolds, whether the tree follows the selection or not. Unfold the folder to see them there.
- Click "Payments", and Shift-click "Web shop", under Elements.
- Right-click one of them, and choose Move 2 elements to folder….
- Choose "Payments platform", and OK.
Dragging¶
Rows dragged onto a folder move into it, the selection with them; dragged onto a group, out of their folders. A row you can drag shows the grab cursor: a view, an element, a relationship or a folder while the tree shows Folders; an element or a view while a diagram is open, to place it there. While you drag, a label by the pointer shows the row — +2 for two more selected that go with it — and what letting go does:
| Over | The label says | Letting go |
|---|---|---|
| a folder of the group | Move into Applications | moves the rows into the folder |
| the group | Move out of its folders; for a folder, Move to the top of Elements | moves them out of their folders |
| anything else in the tree | Drop on a folder of Elements, or on the diagram | does nothing |
| the diagram | (the diagram shows the element where it would go) | places the element, or a reference to the view |
The rows that take them are outlined, and the one under the pointer is filled. Resting on a folded folder unfolds it, to go further in; near the top or the bottom of the tree, the tree scrolls. Esc cancels a drag.
A drop leaves the tree as it was: the folder you dropped on stays folded and flashes, with its new count, and a folder unfolded by resting on it folds again. Unfold the folder to see what moved. What is selected on the diagram stays selected, and the tree does not go to it after the drop.
- Drag "Card payment" onto "Applications": the label says Move into Applications.
- Let go: "Applications" flashes, its count one more, and "Card payment" is in it.
- Fold "Applications", and drag "Gift wrapping" onto it: it stays folded, and flashes.
Derived relationships¶
A derivation rule concludes relationships from others, as ArchiMate's derivation rules do. la-gram does not run the rules; it shows what a model's file brings, under Derived relationships:
| Under | Is | On hover |
|---|---|---|
| Valid | a derivation that holds: its direct triple is asserted, though nobody stated it | Derived (valid), and the rule |
| Potential | a proposition, not asserted until confirmed; its menu has Confirm — state it in the model | Potential derivation, not confirmed, and the rule |
A derived relationship has no Rename… or Move to folder…. Confirming a potential one asserts its triple and the qualified predicate leading to it, and its membership of the model, in one undoable step: it is then a relationship of the model, filed under Relationships, its certainty kept as the record of the rule that proposed it.
- Open a model whose file holds derivations, and unfold Derived relationships › Potential.
- Right-click one, and choose Confirm — state it in the model.
- It is now under Relationships, by its type.