Repository navigation
Editing basics
Add a device: double-click empty canvas, or + Device (Ctrl+Shift+N). The ▾ beside it adds one of a type ("Router 1", "Firewall 1"...). See Device types and front panels for the shapes.
Quick add: type a comma-separated list into the toolbar field (Ctrl+K) and press Enter.
-
Firewall, Router, Switchadds a firewall, a router and a switch, each labeled with what you typed. -
firewall|my-box, rt|test1adds a firewall labeled my-box and a router labeled test1: the type first, then|and the name. - Kinds are matched ignoring case and spacing. Short forms also work: fw, rt, rtr, sw, lb, srv, ap, wlc, sap for a standalone AP and lap for a managed one.
- An unknown kind before
|is kept as a custom kind, and a bare unknown word becomes a plain device with that label. Repeated bare entries are numbered (Router, Router 2). - Semicolons and new lines also separate entries.
The devices are placed in rows of six in the middle of the view, moved down past anything already there, selected, and undone as one step.
Resize a device: drag the small handle at the bottom-right corner of a selected device.
Double-click a device (its name), a port (its interface name) or a link (its label) and type right on the canvas. Or select it and press F2 or Enter, or simply start typing to replace the text.
The edit box grows with the text up to the visible canvas; longer text scrolls (scroll bars appear when it does not fit), and the corner handle resizes the box. Enter or Tab commits, Esc cancels, clicking elsewhere commits. Each edit is one undo step.
Add a port: double-click a device border (then type its name), or use the Top/Right/Bottom/Left buttons in the panel.
Move a port: drag it along the device border, also around corners onto another side; it snaps to the grid when snap is on. For an exact spot, set side and "Position along side" in the panel.
- Pulling an unused port away from the device draws a link instead (the port stays put).
- Pulling a port that has lines off the device detaches it into a free connection point that keeps them (see Lines).
- Shift+drag always moves.
Color a port: select it and pick a Color in the panel (Default color goes back). A connected port is filled with its color, an unconnected one outlined in it, on the canvas and in every export.
Drag from a device border or an existing port and drop on another device, its border or a port. Missing ports are created where you start and end. Dropping on the body picks the side facing the source, aligned for a straight line.
Lines, their types, labels and bends are described in Lines.
+ Text (Ctrl+Shift+T) puts a note in the middle of the view and starts editing it. Shift+Enter starts a new line, Enter commits; a note left empty is removed.
A note fits its text unless you give it a box: resize the editor with its corner handle (the note keeps that size when you finish), or drag the resize handle of a selected note. In a box the text wraps to its width and stays inside it, so it also stays inside a device you zoomed into. On the canvas a scroll bar appears when the text is taller than the box (scroll with the wheel over the note, Ctrl+wheel still zooms, or drag the bar); exports show the top of the text, cut at the box with "…". Fit to text in the panel undoes the box.
Move, multi-select, nudge, duplicate and delete a note like a device; set size, bold and color in the panel.
- Drag a rectangle on empty space: selects the devices, texts and links fully inside it.
- Ctrl+click or Shift+click toggles devices, texts and links.
- Ctrl+A selects everything shown.
Bulk editing: with several items selected, the panel edits them all at once, one section per kind: devices (type, fill color, width, height), texts (size, bold, color), links (type, label, label margin, arrowheads, line style, routing, width, color), plus layer and stacking for the whole selection. Values that differ show as "(mixed)" and are only changed when you set them. Every change is one undo step.
Rename numbers the selected devices in reading order (rows top to bottom, then left to right):
# is replaced by the number, ## pads it to two digits (sw-## gives sw-01, sw-02, …); without
# the number is appended.
Right-click a device, text, line or connection point for a menu with what you most often change:
- Type ▸: the device type, grouped as in the panel (for devices; with several selected, all of them get it)
- Move to layer ▸: the layers, the current one ticked
- Clone: copies, like Duplicate
- Delete
Right-clicking something already selected keeps the selection, so the menu works on all of it; anything else is selected first. Right-click and drag still pans the view.
Hold Ctrl while dragging a device, note or selection: it snaps into line with nearby devices and notes (left/center/right edges, top/middle/bottom), and its ports snap level with ports on other devices, so links become straight. A red dashed guide shows what it lined up with.
- Ctrl+dragging a port slides it into line with a port on another device.
- Ctrl+dragging a line label slides it along its line to where it lines up with them.
- It also snaps to equal spacing, and pink distance markers show the equal distances: midway between two boxes in a row or column; repeating the gap of the neighboring pair when you drag an outer box of a row or column (also to center the box in the middle); and halfway between two boxes that sit diagonally from each other (measured center to center).
- Press or let go of Ctrl mid-drag to switch it on or off. A Ctrl+click without moving still toggles the selection.
- Nudge: arrow keys (10 px), Shift+arrows (1 px).
- Pan / zoom: middle or right drag, or Space+drag / mouse wheel; Ctrl+= and Ctrl+-, Ctrl+0 to fit.
- Snap and grid: Snap and Grid in the toolbar (Ctrl+' for the grid); both are remembered.
- Delete: Del or Backspace.
- Duplicate: Ctrl+D; duplicates keep the links between the copied devices.
- Undo / redo: Ctrl+Z / Ctrl+Shift+Z or Ctrl+Y.
Click the thin strip at its left edge, the Panel toolbar button or Ctrl+B to collapse it into the right edge and give the canvas the full width. The choice is remembered.
All shortcuts are listed in Keyboard shortcuts.
Stratagram · Source · Issues · Apache License 2.0
Getting it
Drawing
- Editing basics
- Device types and front panels
- Lines
- Auto layout
- Layers and sheets
- Deep zoom
- Frames
- Themes
Out and in
More