Add elements
Add participants, messages, notes, boxes, dividers, refs and more to a sequence diagram from the palette, the keyboard or a menu.
Add elements from the palette along the bottom of the canvas, with a letter key, or from the right-click menu. Each one goes after what you've selected.
Use the palette
The palette has Participant, Actor, Database, Box, Message, Note, Fragment and Divider. The caret beside Participant lists every kind, including queue, collections, boundary, control and entity.
Where the new element goes depends on what's selected:
| You add | It goes |
|---|---|
| A participant, actor or database | To the right of the selected participant, or at the end |
| A message | After the selected message, onward from where that one arrived. From a selected participant, it goes to its neighbour, at the end. |
| A note | On the selected participant, or over both ends of the selected message |
| A divider | After the selected message, note or fragment, or at the end |
| A box | Round the selected participants, which move side by side |
| A fragment | Round the selected messages. See Wrap messages in a fragment. |
The new element opens for naming straight away. Type its name and press Enter.
Add from the keyboard
With the canvas focused, press a letter:
| Key | Adds |
|---|---|
| P | A participant |
| A | An actor |
| D | A database |
| S | A message |
| N | A note |
| B | A box round the selected participants |
| F | A fragment round the selected messages |
| R | With a message selected, its reply: an arrow back the other way, right after it |
Group participants in a box
A box draws a labelled outline round neighbouring participants. To add one, select the participants and choose Box in the palette, press B, or choose Group in box in the selection bar or the right-click menu.
Once a diagram has boxes, a participant's selection bar shows its box instead. Pick another box, No box or New box there.
With a box selected, Ungroup removes it and keeps its participants.
Add from the canvas menu
Right-click empty canvas for these:
- Add participant, Add actor and Add database.
- More participants, with the other kinds.
- Add message, Add divider and Add delay.
- Number messages, which turns numbering on or off.
- Select all and Select an area.
- Set spacing and Fit to view. See Layout and spacing.
- Detail, to fold the fragments or leave out the notes. See Detail levels.
- Walk through, to step through the messages in order. See Walk through.
Set spacing sets how far apart participants and rows sit: Compact, Standard (the default), Roomy or Spacious. The app saves it with the diagram, but doesn't write it in the sequence code.
Add at a row
Right-click a participant's lifeline to add something at the row you clicked:
- Add ref here adds a ref over that participant.
- Activate here starts an activation bar. Inside one of its bars, it reads Deactivate here and ends the bar.
- End lifeline here ends the lifeline in a cross.
With several participants selected, Add ref over them adds a ref that spans them.