Trace

See what an element connects to, upstream and downstream, or the paths between two elements, in any kind of diagram.

Trace shows what the selection connects to. What it reaches stays in full ink and the rest of the diagram fades, so you can follow one thread through a busy diagram. Dashes run along the lines it goes through, the way each line goes: a flow from its source, a relationship from its key. It works the same in every kind.

Trace from an element

  1. Select an element.
  2. Press ⇧ T, or choose Trace in the selection bar's More menu, the right-click menu or the search menu (⌘ K).

While Trace is on, the selection bar holds Trace's own tools, and its count says how many elements the trace reached. Click another element and the trace follows it.

You can trace from several elements at once. A lane, a pool, a group or a frame traces from everything in it. A line, such as a flow or a relationship, traces from its two ends.

Which way and how far

  • Direction: Downstream is what the selection leads to, Upstream is what leads to it, and Both is the two together.
  • Reach: how many steps the trace goes, 1 hop, 2 hops or All.

Trace starts with Both and All, except in a sequence diagram, where it starts at 1 hop, because every participant usually talks to every other.

Paths between two elements

Select two elements and turn Trace on. Trace shows the paths that join them, and the count says Paths between, or No path between them.

  • In a BPMN process and a flowchart, the paths follow the arrows, in either order you selected them.
  • In an ER diagram and a sequence diagram, Trace shows the shortest paths, since a join or a call goes either way.

In an ER diagram, Copy JOIN in the bar copies a query that joins the two tables along the path, such as:

SELECT *
FROM customers AS c
JOIN orders AS o ON o.customer_id = c.id
JOIN payments AS p ON p.order_id = o.id;

Each JOIN uses the columns its relationship pairs, and a many-to-many relationship goes through a junction table. Select a column instead of a table to join from its table.

Hide the rest

Choose Hide the rest to hide what the trace doesn't reach, rather than fade it. Choose it again to bring it back.

Ask the assistant

Ask assistant in the bar, or ⌘ L (Ctrl L on Windows and Linux), adds everything the trace reached to your next request. The selection stays as it is.

What the assistant points at

Ask about part of a diagram, such as "what does deleting a customer touch?", and the assistant lights what its answer is about, the way Trace does. Those elements stay in ink, with dashes along the lines between them, and the rest fades. There's no bar. It lasts until you select something outside it, press Esc, or turn Trace on. Light on the canvas under the answer lights it again.

Your AI app does the same in the diagram card: ask in Claude or ChatGPT and the card shows the answer lit. Show all brings back the rest. Apps without the card, such as Gemini, name the elements in their answer instead.

A process at a glance

In a BPMN process with nothing selected, the status bar counts three things. Select a count to trace those elements, and select it again or press Esc to stop.

  • Hand-offs: each time the work passes from one lane to another. A gateway between the two steps doesn't add one, whichever lane it's drawn in.
  • Waits: the events that wait for a timer, a message, a signal or a condition, and receive tasks. An event on a step's border is a deadline, so it isn't counted.
  • Longest path: the most steps from a start to an end, going round each loop once. A sub-process counts as one step.

A count that's zero doesn't show. On a phone the counts are hidden.

Stop tracing

Press Esc or ⇧ T, or choose Stop tracing in the bar. Clearing the selection or opening another diagram stops it too.

What connects, by kind

KindWhat Trace follows
BPMN processSequence flows and messages, boundary events to their step, data a step writes and the steps that read it, and a sub-process to what's inside it
Sequence diagramMessages between participants. From a message, the message that caused it and the ones it causes in turn
ER diagramRelationships, from the table a key is in to the tables that refer to it. From a column, the columns it feeds. From an enum, the columns of its type
FlowchartArrows

In an ER diagram, downstream from a table is everything that depends on it. That's the tables you'd have to change if you changed it.

Details

  • With reduced motion turned on in your system settings, the dashes stand still.
  • Trace changes nothing in the diagram. It isn't saved and doesn't show in exports or view-only links.
  • Trace works while the code has a mistake, and in diagrams you can only view.

On this page