# 3. Wiring and shortcuts

## Placing parts

- **Pick Symbols or Parts at the top of the library.** The switch at the top of the library picks what it lists: **Symbols**, the generic parts by kind, or **Parts**, the real parts with a data sheet in the Catalogue parts tables, then the Device models and your vendor models. The library remembers the choice between sessions. A search lists both, whichever side is on.
- **List or Metrics on the Symbols side.** By default the Symbols side lists names only: each symbol's icon, name and key. The button beside the search box, **Show default values**, adds under each name the values the symbol starts with once placed, written as on the schematic (`100 µH`, `10 V, 50 Hz`). A symbol with real parts in the catalogue also links to them (**108 real parts**), which opens its table on the Parts side. **Show names only** switches back. Hover a symbol to see every basic parameter it starts with. The library remembers the choice, and a search keeps it. In a narrow library the values drop from the right first.
- **Click a part in the library.** It follows the pointer onto the schematic: click where it goes to put it down. The Rotate and Flip keys turn it on the way, and **Esc** or a right click drops it. Chosen from the keyboard (**Enter** in the search box, or on a focused row), or with no schematic on view, it lands near the middle of the view, in free space. On the Symbols side the library sorts the parts by kind: Sources, Sensors & meters, Passives, Switches & diodes, Magnetics, Machines & mechanical, Control, Thermal and Other. Machines & mechanical, Control and the Device models start folded. A group appears only when it has parts. Click a group header to fold or unfold it. Hover a part to see the hint.
- **Search the library.** Type in the search box and the groups give way to one flat list of matches, with the Catalogue parts tables that match under it, on either side of the switch. The search looks at the part's type name (`resistor`, `spmsm`) and its display name, in English or Traditional Chinese, in upper or lower case. A rating searches the device models: `30 V` (or `30V`, `1.2 kV`) finds the parts of that voltage class, `40 A` the parts rated for at least 40 A, and `infineon 30 V` the maker's 30 V parts. If nothing matches, the list says **No parts match**. A search for the probe or the scope (`probe`, `scope`, `oscilloscope`) says which key starts the probe instead: the scope is a tool, not a part.
- **Compare real parts in the Catalogue parts tables.** Switch the library to **Parts**: it lists the parts with a data sheet in six tables: **Switches** (Vds, Id, Rds(on), Qg and a Model chip, Ideal or Real), **Diodes** (Vrrm, If, Vf, Qrr/Qc), **Bipolar transistors** (BF, VAF, IKF and IS: the values of the maker's published Gummel–Poon SPICE model, not data-sheet ratings), **Capacitors** (C, V, ESR, ripple current), **Magnetics** (L, Isat, DCR) and **Power modules** (V, I, Rth(j-c)). Each row shows the part number over its maker and technology (`Infineon · SiC MOSFET`), and the generic Voltecx part heads each table with an **Ideal** chip. The unit of a column is under its name; the values are the ones the catalogue cites from the data sheet, and a value the sheet does not give shows **—**, never a number. Rds(on) and Vf are read off the data sheet's 25 °C conduction curve at the rated current. Click a column header to sort, and again to reverse; the generic parts stay on top. The chips over a table (**Vds ≥ 600 V**, **SiC**, **GaN**…) filter it, and the search box filters the tables too: it understands words and simple limits such as `650 V SiC`, `Rds < 50 mΩ`, `Vds ≥ 600 V` or `10uF 50V` (a value alone is at least that for volts and amperes, at most that for ohms, coulombs and K/W, and within the part's tolerance for farads and henries). Double-click a row, or drag it onto the schematic, to place the part with its data: a semiconductor gets its device model, a bipolar transistor its maker's whole Gummel–Poon card (level `gp`: the static values, junction capacitances and transit times, so a saturated switch shows its storage time) and part number, a capacitor its C, ESR and part number, an inductor its L, DCR and saturation. The icon at the right of a table's header shows it as a plain list instead; the choice, the sort and the chips are kept for each table. Under the pointer a part shows two icons in a column of their own at the right end of its row, never over its values: **Guide** opens the Component Guide on it, and **Data sheet** opens its data sheet when the library links one; a right click on the row offers both too. A table shows about nine rows before it scrolls. In a narrow side bar the columns drop from the right, then the table scrolls in its own box. Scripts and agents get the same rows with `library.query {category, filters, sort}`.
- **Click a part in the parts bar** under the schematic (off by default; turn it on with **View > Parts Bar**). The bar holds the parts most circuits need: resistor, inductor, capacitor, transformer, the DC, sine and pulse voltage sources, the current source, ground, the ideal switch, diode, MOSFET, IGBT, voltmeter, ammeter, and the constant, gain, sum, PI, comparator, carrier and PWM blocks, and an induction machine. A click puts the part on the pointer, as a click in the library does: click on the schematic where it goes, turn it on the way with the Rotate and Flip keys, or drop it with **Esc** or a right click. With no schematic on view, or chosen from the keyboard, it lands near the middle of the view, in free space. Hover an icon for its name and its key.
- **Use the Insert menu.** **Insert** has one submenu for each category. Choosing a part there places it near the middle of the view, in free space. The Insert items are also in Quick Open, as `insert.<type name>`.
- **Use the Library menu.** **Library** has the submenus Passive, Sources, Switches, Magnetics, Control, Thermal and Meters. Each lists the parts of one category (Switches includes the diodes and the relay, and Meters is the Sensors & Meters category). Choosing a part places it the same way. The `relay` is an electromechanical relay: a coil that pulls in and drops out at set voltages after a delay, and one changeover contact (`com`, `no`, `nc`).
- **Press a part key with the pointer over the schematic.** The part follows the pointer, snapped to the grid, and the status bar says *Placing Capacitor: click to put it down · R rotates · X mirrors · Esc or right-click cancels* (with this keymap's Rotate and Flip keys). Click to put it down. Before you click, the Rotate and Flip keys turn it. **Esc** or a **right-click** puts it away, as a right-click ends a wire in progress or a move; that right-click opens no menu. Another part key swaps the part on the pointer. Putting it down is one Undo step. From a menu, Quick Open or automation the part is placed at once.
- **Right-click empty canvas and choose Place Part.** The part lands where you right-clicked.

| Key | Part |
|---|---|
| `R` | Resistor |
| `L` | Inductor |
| `C` | Capacitor |
| `D` | Diode |
| `G` | Ground |
| `V` | DC voltage source |
| `I` | DC current source |
| `S` | Switch |
| `M` | MOSFET |
| `T` | IGBT |
| `U` | Ammeter (current sensor) |

These are the keys of the **Classic** keymap, which a new installation starts with: one plain letter places one part. With the **Default** keymap the resistor, inductor, ground and DC source take **Shift** (**Shift+R**, **Shift+L**, **Shift+G**, **Shift+V**) and the MOSFET, IGBT, current source and ammeter have no key (see [Keymaps](#keymaps)).

**Insert** or **Shift+A** (Edit › Place Again) places another copy of the part you placed last, from the library, a part key or the Insert menu, under the pointer. Each press is one Undo step.

A new part starts with a typical value for every value it needs (a resistor 10 Ω, an inductor 100 µH, a capacitor 10 µF, a DC source 12 V, a sine source 10 V at 50 Hz, a carrier 10 kHz), so a circuit simulates as soon as it is wired. Change them in the Properties panel.

Each new part gets a name with a number (`R1`, `R2`, ...). You can rename a part in the Properties panel. A new part is selected, so you can press **Cmd+R**, **X** or **Y** at once to turn it.

## Drag and drop

- **Drop a file on the window.** Voltecx routes it by extension, then by content: a `.voltecx` circuit opens in its own tab, an LTspice, PLECS or SPICE file is imported, and a scope CSV goes to Import Measurement (run a simulation first, so there is a trace to compare with). A PDF or a file Voltecx does not know is refused with a line that says why. While a file is held over the window, an overlay says "Drop to open or import".
- **Drag a part from the library onto the schematic.** A ghost of the part follows the pointer, and on the drop the part is placed at the grid point nearest the pointer, with the same command as a click.

![The drop overlay while a file is held over the window, marked 1](https://voltecx-web.nguyenvanqui291.workers.dev/docs/manual/img/en/wiring/04-drop-files.png)

1. The overlay: let go to open or import the file.

## Selecting and moving

- Click a part to select it. **Shift**-click or **Cmd**-click adds a part to the selection or takes it out. Click empty space to clear the selection.
- Drag on empty space to draw a selection rectangle. Drawn left to right, it selects the parts and wires wholly inside it. Drawn right to left, its outline is dashed and it selects every part and wire it touches. Hold **Shift** to add them to the selection. **Delete** then removes the parts and cuts the wires in one step: a net the cut wires split moves its loose side to a new net. Hold **Cmd** (Ctrl on Windows and Linux) instead to zoom to the box you draw.
- **Drag a part to move it.** It snaps to the grid. If several parts are selected, they all move. One drag is one undo step. If you drop a part so that one of its pins lands exactly on a pin of another part, the two pins are connected, as in PSIM and LTspice; the move and the connection are still one undo step. Placing a part with a pin on a pin does the same.
- **A new part never lands on another.** A part you add without choosing a spot, or one an assistant adds, takes the nearest free grid spot when its spot is taken. A part you drag or paste stays exactly where you put it, even on another symbol; the Problems tab then warns that the two overlap, and its **Fix** (Move apart) moves the second one to the nearest free spot.
- **Or press Shift+M** (**M** in the Default keymap). The selected parts follow the pointer, and the status bar reads *Moving 2 part(s) · click to place · Esc or right-click to cancel*. Click to put them down, or press **Esc** (or right-click) to put them back. This is one undo step too.
- Hold **Alt** (Option on a Mac) while you drag to switch snapping off for that drag. The part then moves in steps of one eighth of a grid unit.
- Hold **Alt+Shift** (Option+Shift on a Mac) while you drag a part to lift it off its wires, as LTspice's Move does: on the drop its pins leave the nets that reach parts you did not move, and the wires left behind re-route among the parts still on them. Wires between the moved parts stay. You can press or release the keys during the drag, and the canvas shows the wiring as it will be. The move and the unplugging are one undo step. **Shift** alone always adds to the selection, on a part as on empty space.
- **Edit › Preferences › Editor › Wires follow moved parts** (on by default) sets which of the two a plain drag does. With it off, every drag lifts the parts off their wires, and **Alt+Shift** held during a drag keeps the wires for that one drag. **G** (grab, keeps the wires) and **M** (move alone) do what they say whatever the setting.
- Arrow keys nudge the selection by one grid step. **Shift + arrow** nudges it by five.
- **Cmd+R** rotates the selection a quarter turn clockwise (in the Default keymap **R** does too).
- **X** (or **Cmd+E**, or **Cmd+Shift+F**) mirrors it left to right. **Y** mirrors it top to bottom. Each is one step, so one undo takes it back.
- **Cmd+A** selects every part. **Cmd+F** opens a search field at the top of the window. As you type, the parts whose name, kind or a parameter value contains the text are selected and the view zooms to them. Enter or Esc closes the field and keeps the selection. **Edit > Find Next** (**F3** in the Classic keymap) then selects the matches one at a time and zooms to each, starting again after the last; the status bar says which one it is ("2 of 5: L2").
- The search field's second row replaces text (**Edit > Find and Replace**). Type the new text in **Replace** and pick where it applies: **Values** (parameter values and expressions; `100u` finds an inductance written as 100 µH), **Names** (part names; their labels, probes, scope signals and expressions follow) or **Nets** (net names; their labels, probes and `v(net)` scope signals follow). The count next to **Replace All** says how many changes it would make before you press it. **Replace All** makes every change as one step, so one **Cmd+Z** takes it back. A change that would give an invalid name, or a name another part or net already has, is shown in red and nothing changes.
- **Cmd+C**, **Cmd+X**, **Cmd+V** copy, cut and paste. A pasted part gets a fresh name (`R1` becomes `R2`). With the pointer over the schematic, the copies land at the pointer (from the right-click menu, where you right-clicked). Pins that the copied parts share stay wired to each other, but a copy is not connected to the rest of the circuit: it joins ground only when you copied a ground symbol with it, and a named net only through a label you copied with it. The status bar says which pins were joined. **Cmd+D** duplicates.
- **Delete** or **Backspace** removes the selection (the selected parts, or the selected wire or label, see below).
- **Cmd+Z** undoes. **Cmd+Shift+Z** or **Cmd+Y** redoes. Every edit is one history step, including the ones made by commands and by an assistant. The **Edit** menu and the toolbar name the step: **Undo Move Component** takes back the move, and **Redo Move Component** brings it again (a long step name, such as an assistant's prompt, is shortened). With nothing to undo, the item reads plain **Undo** and is greyed out. After **Apply to circuit** in a field solve, or **Changes made** in a design, an **Undo** link beside the message takes that one step back while the circuit is still at it; a later edit removes the link.
- **Edit › Undo List** opens a tab beside Properties in the right column that lists every step, oldest first. The current step is highlighted and the undone ones (the steps Redo brings back) are dimmed. Hover over a step to see what it changed (parts added or removed, values changed, pins connected), and click a step to go straight to it, as that many undos or redos would. The later steps stay until your next edit, which replaces them. The Properties tab takes the column back while the Undo List stays open behind its own tab; right-click the tab and choose Close Undo List to close it.
- **Esc** ends what is in progress (a wire, a move, a dialog, then the wire tool) and lets go of a selected wire or label. With nothing in progress it clears the selection. In the wire tool, the first **Esc** drops the wire you are drawing and the second leaves the tool.

**Right-click a part** for a menu with Cut, Copy, Rotate, Flip, Flip Vertically, Duplicate, Disable (or Enable), Create Subsystem, Delete and Properties. Each entry shows its keys. Right-clicking on one of its pins adds **Disconnect Pin**. **Right-click empty canvas** for Undo, Redo, Paste, Place Part, Wire Tool, Select All and Fit to Window. **Right-click a wire** for Rename Net, Delete Wire and Draw Net as Labels, and **a net label** for Rename Net and Draw Net as Wires; after a run both menus also have Probe. With two or more parts selected the part menu also has **Align**. The menu bar has the same entries under the same names: **Circuit > Align** (Align Left to Distribute Vertically) and **Circuit > Net** (Connect, Disconnect, Draw Net as Labels, Draw Net as Wires, Straighten Wire, Rename Net, for the selected wire or label), and so does Quick Open. **View > Zoom to Box** makes the next drag zoom to the box you draw, as a Cmd-drag on empty canvas does.

![The right-click menu of L1, marked 1 to 3](https://voltecx-web.nguyenvanqui291.workers.dev/docs/manual/img/en/wiring/02-context.png)

1. Rotate.
2. Mirror left–right (the item under it mirrors top–bottom).
3. Properties, each with its key.

**Edit > Select by Criteria** selects every part of a kind that meets a parameter condition, such as every resistor of 10 kΩ or more: give `{"kind": "resistor", "param": "r", "op": ">=", "value": "10k"}`. With a part selected, the dialog starts from its kind. `op` is one of =, !=, <, <=, >, >= and contains; `enabled` and `dnp` pick disabled or not-fitted parts. A value written as an expression (`2*rbase`) has no number before a run, so it is listed as not compared instead of guessed.

**Edit > Check Elements** lists every part of the sheet shown (or of the subsystem you are in) in one table: its name, its kind, its parameters as typed (`r=4.7k`, `l=2*lbase`), whether it is simulated and fitted (Not simulated, DNP), and what the circuit's check finds about it, in red for an error and amber for a warning (hover for every finding; a part with none shows a tick). Click a row to select the part and zoom to it, and use the arrow keys to step through the rows. Click Name, Kind or Findings to sort (again to reverse); **Problems Only** lists just the flagged parts, and **Copy table** puts the table on the clipboard as tab-separated text. The findings are the Problems tab's, so they update as you edit.

**Edit > Find in Files** runs the same search as Find over every open circuit and, with **Include This Folder** ticked, over every circuit file in the folder of the circuit shown and its subfolders, without opening them. Type a part name, a value (`4.7k`) or a net name and press **Search** or Enter. The matches are listed under each circuit, with its file path or "Open tab"; parts inside a subsystem say which one. Click a part to bring its circuit forward (a file is opened) with the part selected. A file that cannot be read, such as a protected one, is counted under the summary, and hovering there says why. A circuit that has never been saved has no folder, so only the open circuits are searched.

While parts are selected, the right end of the status bar lists the keys that act on them, in your keymap: rotate, mirror, move, grab, delete and all shortcuts (in Classic, **Cmd+R**, **X**, **Shift+M**, **Shift+G**, **Delete** and **?**).

Letter keys never act while you type in a text field. The part keys, **W**, **N** and **Shift+T**, and the keys that edit the selection (**Delete**, **Backspace**, **Shift+M**, **X**, **Y** and the arrows), act only while the schematic has the keys, so a key pressed after a click in Properties, the library or the scope never changes a part you cannot see. Keys follow focus, not the pointer: a click on the schematic or the scope gives it the keys, and so does **F6** landing on it; until your first click they follow the pointer. Pressed while another panel has the keys, the status bar says where the key acts. Their **Cmd** keys act anywhere. While a menu is open, the keys belong to it: **Esc** closes it and no shortcut acts through it.

## Disabling a part

To try a circuit without a part, switch the part off instead of deleting it, as with "disable element" in PSIM or "comment out" in Simulink.

- Right-click the part and choose **Disable**, or press **Cmd+Shift+E**, or choose **Circuit > Enable/Disable**. With several parts selected, this disables all of them. If every selected part is already disabled, it enables them all, and the menu entry reads **Enable**.
- In the Properties panel, the **Enabled** checkbox does the same for one part.
- Each change is one undo step.

A disabled part stays on the schematic. It is drawn in grey with dashed lines and a slashed circle on it, and it keeps its wires and parameters. The simulation, **View > Problems** and C code generation leave it out, as if it were not there. Inside a subsystem the same rule holds: a disabled part in the subsystem is left out of every instance, and a disabled instance leaves the whole subsystem out. If you expand a disabled instance, its parts come out disabled too.

The pins it was connected to may now be open. The problems list (chapter 8) shows such findings as information, ends the message with "because `C1` is disabled", and offers **Enable `C1`** as the fix. Problems that were there before you disabled the part keep their severity.

When you export, a SPICE netlist writes the part as a comment line (`*C1 out 0 1e-6`). Remove the `*` to switch it back on. LTspice and PLECS files keep no disabled state that Voltecx knows of, so writing back leaves the part in the file unchanged and gives a warning. A new part that is disabled is not added. The SVG and PNG exports draw the part in grey, as the canvas does.

### Enable conditions

A part or a subsystem instance at the top level can also be switched by a variable, so one schematic holds its variants (an optional snubber, a second stage, a test load). Give it a condition with `circuit.setEnableCondition {"component":"X2","condition":"stage2"}`: an expression of the circuit variables, such as `stage2` or `mode == 2`. A run leaves the part out while the condition's value is 0.5 or less, exactly as if it were disabled, and its warnings say so ("`X2` is left out of this run: its enable condition is false"). Change the variable (`circuit.variables {"set":{"stage2":1}}`, or a parameter sweep over it) and the next run puts the part back. The part itself stays enabled and is drawn as usual. A condition never switches on a disabled part, and `null` removes it. The SPICE export reads it too: at the circuit's variable values, a part whose condition is false is written as a comment, like a disabled part, and named in the export's warnings. The problems list reads it at the same values: a part whose condition is false gets an info `enable.conditionOff` (fix: remove the condition), a pin it leaves floating is an info that ends "because the enable condition of `X2` (`stage2`) is false", and a condition a run cannot evaluate (it names a variable you removed) is an error `enable.conditionError`. C code generation (Tools > Code Generation and `file.exportCode`) reads it at the same values: a control block whose condition is false is left out of the generated code, the reply's warnings name it ("`DBG` is left out of the generated code: its enable condition `debug` is false at the circuit's variable values"), and a sense divider left out this way gives no ADC full scale.

## Wiring

**View > Tool Dock** shows the schematic tools in the tool dock, a bar that floats at the foot of the schematic. It is off by default, so nothing covers the drawing; the keys work either way:

![The tool dock at the foot of the schematic, marked 1 to 5](https://voltecx-web.nguyenvanqui291.workers.dev/docs/manual/img/en/wiring/01-tools.png)

1. Select (**Esc**). The **▾** beside it also lists **Pan** (**H**): with it a drag moves the view, as Space held does, and a click selects nothing. While Pan is the tool, the first button shows it.
2. Wire (**W**).
3. Probe (**Shift+P**).
4. Net Label (**N**).
5. Text (**Shift+T**; **T** in the Default keymap).
There is one workbench, with every tool, before and after a run: there are no Edit and Simulation modes to switch between. A run opens the scope in the panel under the schematic. To give the scope the whole window, click **Maximize Scope** (the upward chevron beside the scope toolbar's window button, or **View > Maximize Scope**); the tool in use stays, the dock stays at its foot, and **Restore Scope** gives the schematic back.

To draw a wire:

1. Press **W** to pick the wire tool. A strip at the top left of the schematic sums it up: *Wire · click a pin or wire to start · click to add a corner · double-click or Enter to finish · Esc drops the wire, Esc again leaves Wire*, and the status bar says `W wire tool: click or drag from a pin to another pin or a wire to connect them; Esc ends`. (Clicking a pin in the normal tool also starts a wire.)
2. Click the first pin. The status bar says `wiring from R1.p: click another pin`. A dashed L from the pin to the pointer shows where the wire will go.
3. Click the second pin. Voltecx joins them into one net. The wire is routed for you, and a dot marks a junction.
4. Press **Esc** to give up a wire in progress; the wire tool stays on for the next one. Press **Esc** again to stop wiring. A right-click also gives up the wire in progress, without opening the menu.

**Drag to wire.** You can also press on a pin and drag. Let go on another pin to connect the two, or on a wire to join that wire's net. If you let go on empty space, the wire stays in progress, so you can still click the pin you want.

**Corners.** While a wire is in progress, whether it started on a pin or on a wire, click empty space to put a corner there. A dot marks each corner, and the dashed preview runs through them. End the wire on a pin or a wire with a click, or point at one and press **Enter** or double-click. The corners become the joined net's bends, one undo step after the connection. Enter or a double-click over empty space does not end the wire, because a wire always ends on a pin or a wire; the status bar says so. Inside a subsystem a click on empty space gives the wire up instead, because bends belong to the top level.

**Join a wire (T-junction).** While a wire is in progress, click an existing wire (or a net label). The pin joins that wire's net, and the junction dot appears where the wires meet.

**Pins on top of each other.** When two pins sit on the same spot and a wire starts at one of them, a click on that spot picks the other one, so you can still connect them.

Rules to remember:

- A wire joins two pins. Clicking a third pin on the same net joins that one too.
- A wire joins pins of one kind only: electrical, control, thermal, magnetic or mechanical. A wire between two kinds is refused, and the status bar says which, for example *cannot connect an electrical pin to a control pin*. When it is a power pin to a control input, the status bar also offers **Insert Voltage Sensor**: one click puts a voltage sensor between the two pins, its `+` on the power net, its `−` on a ground symbol of its own and its output on the control pin, as one undo step.
- A ground symbol puts its net on ground (net `0`). Every circuit needs at least one ground.
- A pin with nothing connected is a **floating pin**. The check in **View > Problems** reports it, and so does the problems list in chapter 8.
- Wires are made of nets, not of drawn lines. If you move a part, the wires follow. Voltecx routes every wire itself. The corners you click while wiring, and the corners you make by dragging a wire, are bends it passes through. You can point at a wire, select it and delete it (below).
- To name a net, point at one of its pins and press **N**. A small form asks for the net name, filled in with the current one; type the new name and press Enter. Under the name the form says what it does to the circuit: **Joins the net g1 already on PWM1 out** when that name is in use (same name, same net), or **Starts a new net**. Its **Kind** lists the five kinds with what each draws: **Net** (names the net, wires stay), **Link** (goto / from, no wire), **Rail** (a rail symbol at every pin), **Port** (a pin of this sheet or block) and **Ground** (a local ground symbol); left unpicked, the pin decides. Or pick the **Net Label** tool in the tool dock and click pins one after the other; **Esc** ends it. A net label on an electrical pin only names the net: the wires stay, and the flag shows on that pin. Goto and From labels on control pins join their pins by name and draw the net as flags instead of wires. **Draw Net as Labels** in a wire's right-click menu draws any net as flags. Net and link labels look like the net labels of the EDA tools engineers use: the name in plain text on a short wire stub from the pin, above a level stub and past the end of an upright one. Only a port keeps an outlined flag (a hexagon), because it leaves the sheet; a rail keeps its bar and ground its three bars.
- Ground is drawn locally by default, as in KiCad and PSIM: every grounded pin gets its own ground symbol (three bars), and no ground wire runs around the drawing. A ground part you place yourself keeps its wires: a ground net with a ground part on it is wired, as you drew it. To switch, right-click a ground symbol and choose **Draw Net as Wires** (one ground symbol, at the lowest pin), or right-click a ground wire and choose **Draw Net as Labels**. The choice is saved with the circuit. A rail net (a net with a rail label on one of its pins) shows its rail symbol at every pin in the same way. Neither changes what is connected. Files saved before this change open with the new default: their ground is local unless a ground part sits on it.

## Wires and labels under the pointer

- **Hover** a wire or a net label: its whole net lights up (every wire and every label of it), and a tooltip gives the net's name and how many pins are on it.
- **Click** a wire to select that piece of wire, or a label to select it. It is drawn in the accent colour, the Properties panel shows the net's name and its pins, and the status bar says what the keys do. **Esc** lets go. Double-click a wire or a net label to rename its net, as **Rename Net** in their right-click menus does. The window shows the name selected, so you type the new one and press **Enter**: every pin on the net, its labels and its wires take the new name in one undo step, and nothing is added to the drawing. Probes and math traces that read the old name (`v(sw)`) keep reading the net. A name another net already has is refused, because a rename never joins two nets; join them with a net label (`schematic.renameNet {"net": "sw", "name": "SW_NODE"}`).
- The probe tool (**Shift+P**) takes a click on a net label as a click on its net.
- While a simulation runs, a probe click puts the trace on the scope's live preview at once; it does not wait for the run to end.
- **Shift+click** a wire or pin of one net, then click a second net: the scope shows the voltage between them, `v(a)-v(b)`. It is added as a math signal named `v_a_b` (one **Cmd+Z** takes it back) and recomputed after every run. Probing the same pair again takes it off the scope. **Esc** drops the first net and keeps the probe on; Esc again leaves it.

## Annotate designators

**Circuit › Layout › Annotate Designators** renumbers designators in reading order, so R1 is the top-left resistor and the numbers run left to right, row by row (on a drawing of several sheets, sheet by sheet). Names that are not letters and a number, such as `Vin` or `Rload`, stay; pins, labels, probes, scope signals and expressions follow, and the netlist is the same. A form asks how:

- **Only these parts**: starts with the selection; leave it empty for every part. The parts not listed keep their names, and their numbers are skipped.
- **Start number**: `101` gives R101, R102, ...
- **Order**: rows (the default) or columns (left to right first, each column top to bottom).
- **Keep these designators**: parts that keep their names this time. A part locked with `schematic.lockDesignator {"components":["R10"]}` always keeps its name; its number is skipped.
- **Preview only**: shows the old → new list and changes nothing.

The renumbering is one undo step. Agents call `schematic.annotate {"components"?,"start"?,"order"?,"locked"?,"preview"?}`; `preview` returns `{"renames":[{"from","to"}]}`.

## Moving a part's designator and value

A part's designator and value go beside it on their own, clear of wires and other labels. To put them somewhere else, as you would move a reference or value field in KiCad or Altium, drag the designator or the value with the Select tool: an outline follows the pointer, snapped to the grid, and the label stays where you let go, designator over value, on the canvas and in every export. The move is one undo step, and the netlist does not change. A renamed part keeps its label's place. Agents call `schematic.movePartText {"part":"L1","offset":[dx,dy]}` (the label's top left, in grid units from the symbol's centre); without `offset` the label goes back to its automatic place.

## Showing parameters on the schematic

Each parameter in Properties has an eye beside its `?`. It is open while the parameter is written under the part's designator on the schematic, and struck through while it is not. Click it to show or hide that parameter. A part starts with its key values ticked (an inductor's inductance, a PI controller's Kp and Ki). When you tick more, each shown value is named, for example `C 100 µF, Esr 5 mΩ`, and a parameter left at its default shows the default. With every eye closed, only the designator shows. The choice applies on the canvas and in every export, is saved with the circuit and is one undo step. The netlist does not change. Agents call `schematic.showParams {"part":"C1","show":{"esr":true}}`; `{"part":"C1","reset":true}` goes back to the key values.

## Tidy the schematic

**Compact layout (preview).** Studio 1 brings an industry-style layout for circuits built round one IC, such as the application circuit `circuit.applicationCircuit` builds. For now you start it from the command line or the assistant: `schematic.autoLayout {"style":"compact"}`. The IC stands in the middle. The power parts (bootstrap capacitor, catch diode, inductor, output capacitors, load and feedback divider) stand beside the pins they connect to, in signal-flow order. The compensation and soft-start parts sit in a row under the IC, joined to their pins by net labels. The supply is drawn as a power port at each pin it reaches, and every grounded pin has its own ground symbol, so no wire runs across the sheet. A circuit without an IC keeps the usual layout. Only the drawing changes; the netlist stays the same, and **Edit › Undo** takes it back.

**Circuit › Layout › Tidy Schematic** makes a drawing readable in one undo step. Control blocks that sit inside the power stage move above it together, keeping their arrangement. Symbols drawn on top of each other move apart. Every grounded pin gets its own ground symbol instead of one ground wire. Every control or measurement signal that reaches a power part (a gate signal, a sensor reading), runs through the power stage, or is 20 grid units or longer is drawn as net labels instead of a wire. Only the drawing changes: the parts and their connections stay exactly as they were. A window then shows the drawing **before and after** side by side, each with its overlapping symbols and wire crossings, the nets and parts the step changed, and **Netlist identical** under the after side; **Keep** closes it and **Undo** takes the step back. A drawing that is tidy already is left as it is, and the status line says so. Nothing is wrapped into a subsystem for you: to make a controller of several blocks one module, select its blocks and use **Circuit › Subsystem › Create Subsystem** (an assistant gets that call offered in the command's reply).


## Electrical rules check

`schematic.erc` reads the top level of the schematic and lists what cannot be right, without changing anything. Run it before a simulation and before a board sync. Every finding names the part, pin or net and gives where it sits on the sheet (`at`, in grid units), so a list can select it.

In the app, **Tools › Electrical Rules Check** opens a window with the findings, errors first. While it is open the check runs again after every edit or undo, so a fixed finding leaves the list at once, and the parts, pins and nets it names are outlined on the canvas. Click a finding to show it on the schematic: the editor goes to the top level, selects the part, highlights the net and centres the pin. The window reads the top level only, as the command does.

| Code | Severity | Meaning |
|---|---|---|
| `pin.conflict` | error | Two pins that both set the net's value: output with output, output with a power output, power output with power output, or an open-drain output with an output or a power output (it pulls low against their level). Open drains together are a wired OR and do not conflict |
| `net.undriven` | error | A signal net with an input and nothing that can drive it (no output, power output or passive pin) |
| `net.powerUndriven` | error | A net (not ground) with a library IC's supply pin (a power input: VCC, VDD, VIN; not a bootstrap pin) and nothing that supplies DC: only supply pins, that IC's own pins and capacitors |
| `pin.unconnected` | error or warning | A pin on no net: an error for a signal input, which floats; a warning for the rest |
| `net.singlePin` | warning | A net with one pin (ground and signal nets are left out; an unread signal is one for the scope) |
| `designator.duplicate` | error | Two parts with one designator; a warning when only the letter case differs |
| `powerFlag.unconnected` | warning | A pin carries a power flag but is on no net, so the flag supplies nothing |
| `net.noPullUp` | warning | A net (not ground) with an open-drain or open-collector output and no resistor to pull it up, so it never goes high |
| `pin.ncConnected` | warning or error | An IC pin with no internal connection (`NC`) wired to other pins: a warning; an error for a `DNC` (do not connect) pin |

Pins get a type from their part: a signal pin is an input or an output as `circuit.problems` reads it, the **+** pin of an ideal voltage source or a battery is a power output, a library IC's supply pin is a power input, a library IC's open-drain or open-collector output is an open collector (for a part that offers both, such as the comparator or the fast optocoupler, its `openDrain` or `totemPole` value decides), an IC pin named `NC`, `N/C` or `NC1` is not connected (`DNC`: do not connect), and every other pin, such as a resistor's end or a subsystem instance's pin, is passive. Unused outputs, optional block inputs, inputs fed by a bus, a machine's star point and unused breaker poles are skipped. Board-only parts such as mounting holes are left out.

A supply that comes from off the sheet, such as a bench supply or the far side of a connector, gets a **power flag**: `schematic.powerFlag {"pins":["CIN.p"]}` draws a small flag at that pin, and the pin's net is then not `net.powerUndriven`. `"flagged": false` removes it. The flag is display only: the netlist does not change. Do not flag a net to hide a source that should be on the schematic. The KiCad export writes one `PWR_FLAG` on each flagged net, so KiCad's ERC agrees; the flag is off the BOM and the board, and the KiCad sync reads it as no part and no net.

Agents call `schematic.erc {"listPins"?}`; it returns `{"findings":[{"severity","code","message","component"?,"pin"?,"net"?,"pins"?,"at"?}],"counts":{"error","warning"},"total","truncated"}`, and with `listPins` the type of every pin.

## Removing a connection

- **Delete a wire.** Select a piece of wire and press **Delete** or **Backspace** (or right-click it and choose **Delete Wire**). If the rest of the net still holds together, nothing changes and the status bar says so. Otherwise the net splits in two: the side with the ground symbol keeps the net (without one, the larger side does), and the other side gets a new net name, or is left open if it is a single pin. It is one undo step.
- **Take one pin off.** Right-click the pin and choose **Disconnect Pin**, or select the part, open Properties and empty the pin's field in the Ports list. Selecting a net label and pressing **Delete** takes its pin off the net too.
- Agents use `circuit.disconnect` (`{"component":"R1","port":"p"}` or `{"pins":["R1.p","C1.n"]}`), or the `disconnect` op of `circuit.apply`.

## Parameters

Double-click a part, press **E** with the pointer over the schematic, or open **View > Secondary Side Bar > Properties**: the keyboard goes straight to its first value. The panel lists the parameters by a readable name (**On-state resistance**), with the key small under it (`ron`), the unit beside the field and the full description under the pointer. An empty field shows the value used when it is left empty, greyed: `1meg`, `required`, `off` for a feature that is off until set, or `no limit` for an output limit that is not set. A parameter that takes one of a few words (a carrier's shape, a controlled source's mode) is a list to pick from. Type a value and press Enter (or click away) to commit.

![L1 selected and its Inductance field in Properties, marked 1 to 2](https://voltecx-web.nguyenvanqui291.workers.dev/docs/manual/img/en/wiring/03-properties.png)

1. `L1`, selected.
2. Its Inductance field in Properties.

The panel shows the values an ideal model needs first. The rest (losses, parasitics, delays, temperature, datasheet data) wait under **Advanced (N)**, folded; it stays open or closed for the rest of the session. An advanced value that is set always shows among the first ones, so nothing set is ever hidden. A required value that is not set is listed in the Problems tab before a run, all of them at once, each with a fix that puts a typical value in.

- A value can be a number with an SI suffix (`4.7u`), a circuit variable (`Vin`), or an expression.
- **Suffixes**: `f p n u m k meg g t` (femto to tera). Following SPICE, a bare `M` or `m` means **milli**, so `1M` is 0.001, not a million. Write mega as `meg` (`1meg`). A value that ends in a bare `M` shows a hint with a one-click **Use 1meg**, and `circuit.setParam` returns a `warnings` entry. Expressions also accept `sqr`, `sign`, `hypot` and `**` for the power.
- **Circuit > Variables** lists the circuit variables in one table: each name, its expression and its resolved value. A parameter that points at a variable changes everywhere the variable is used. A sweep (chapter 6) needs variables.

## Text notes

Notes put a title or a remark on the schematic. Pick the **Text** tool (**Shift+T**, **T** in the Default keymap, or the **T** button in the tool dock) and click where the note should start; a window asks for the text, its size and its colour (ink, red, blue, green or grey). A note can have several lines.

- Click a note to select it, drag it to move it (one undo step), and double-click it to edit it. **Delete** removes the selected note.
- Notes are saved in the file (`schematic.notes`), drawn in the SVG export in their size and colour and written into the TeX export as plain text. The PNG export letters them too, in its small pixel font.
- Text boxes in an imported PSIM schematic become notes at their place.
- Agents use `schematic.addText {"text","at":[x,y],"size"?,"color"?}`, `schematic.editText {"index",...}` and `schematic.removeText {"index"}`.

## Sheets

A flat circuit can be drawn over several sheets, the way a real converter is drawn: the power stage on one, its control on another, the auxiliary supply on a third, joined by net labels. **Circuit > Sheets > Add Sheet** adds a sheet and shows it; the tabs under the canvas then list the sheets (hover one to see how many parts and notes it holds). Click a tab to show that sheet, **+** to add another, and right-click a tab to rename it or to remove it (only an empty sheet can be removed).

- Parts and text notes you place go on the sheet shown. To move parts, select them and right-click **Move to Sheet ›**, then pick the sheet.
- Sheets are only a drawing: nets are joined by name, so the netlist and the simulation are the same however the parts are spread. A net that ends up with pins on two sheets is drawn with net labels on both, so each sheet shows where it continues; rail, net and goto/from labels join across sheets.
- **File > Print** and **Export Schematic** with a page write one page per sheet, each titled with its sheet's name (`buck / Control`) and numbered *n of m*. A plain figure is the sheet shown.
- A file drawn on one sheet is saved as before. A file with sheets is format version 3; a file from before sheets opens with everything on sheet 1.
- Agents use `schematic.addSheet {"name"?}`, `schematic.moveToSheet {"components":[...],"sheet"}`, `schematic.renameSheet {"sheet","name"}`, `schematic.removeSheet {"sheet"}` and `schematic.showSheet {"sheet"?}` (without `sheet` it lists them).

## Subsystems

**Circuit > Subsystem > Create Subsystem** (Cmd+G) turns several parts into one block with named pins. The dialog asks for the parts and a name, for example `{"components":["S1","D1","L1"],"name":"stage"}`. The nets that cross the boundary become the pins. Select the block and choose **Circuit > Subsystem > Expand Subsystem** to turn it back into its parts. Use a subsystem for a gate driver, a filter or any repeated stage.

**Circuit > Subsystem > New Subsystem** starts a block from nothing. Give it a name and its pins, separated by commas or spaces (`ref, fb, duty`), and choose **Power** for electrical pins or **Control** for signal pins. **New subsystem** places the empty block in view with its pins unconnected and opens it, so you draw its inside right away; a part you wire to a net named like a pin is on that pin. One undo takes the block away. Pins can be changed later in Properties (below).

**Circuit › Layout › Group into Blocks** groups a whole converter at once: each design step's parts go into a subsystem named after it (POWER_STAGE, EMI_FILTER, PROTECTION, SENSING, CONTROLLER, GATE_DRIVE). The top level then shows the sources, the blocks and the loads in power-flow order, with sensing, controller and gate drive in a row under them joined by net labels, and each block's key values over it (for example `L1 22µH · PWM 100kHz`). The role of a part is read from its kind and name: a dead-time block, `Rg1` or `Cboot` is gate drive, a meter or `Rfb2` is sensing, a fuse or TVS is protection, `Cx`, `Cy` or a common-mode choke is the EMI filter, other control blocks are the controller and the remaining power parts the power stage. Sources, loads, grounds and test points stay on the top level. The grouping is one step: Cmd+Z takes it back. The netlist stays the same, and probes and scope signals follow the parts (`i(L1)` becomes `i(XPWR.L1)`).

**Double-click a subsystem** (or select it and choose **Circuit > Subsystem > Edit Subsystem**) to edit the parts inside it. The canvas then shows its parts, and a bar above the canvas shows where you are, for example `closed_loop › PI_Id`. Select a part and change it in Properties, move it, wire it or add parts, as at the top level; every change applies to the subsystem's definition (so to every instance of it), can be undone with Cmd+Z, and the next run uses it. Press **Cmd+Up** (Ctrl+Up on Windows and Linux), click the **‹ Back** button at the left of the bar (it shows its shortcut), or click a name in the bar to go back out. **Esc** never leaves a subsystem: it only ends what is in progress and then clears the selection, so an Esc meant for a wire cannot take you out. When you enter a subsystem, the status line says which key leaves: *⌘↑ leaves the subsystem · Esc cancels only*.

**Pins.** Inside a subsystem, with nothing selected, Properties lists its **Ports**. Double-click a pin's name to rename it, or right-click it for **Rename**, **Move Up**, **Move Down** and **Remove**; **Add Port** adds a pin. A pin is the net of the same name inside, so a rename renames that net too, and **Add Port** with the name of a net inside brings that net out. Every change applies to the definition and to each instance at once, as one undo step. The nets outside stay as they are: a moved pin moves down the side of each instance's box, and a removed pin's wires outside come off. A rename is refused when another pin or a net inside already has the name, so it never joins two nets.

A big subsystem opens at a zoom where its labels stay readable (75 %, so designators are 9 pt), not shrunk until everything fits: you see its top-left corner, where the signals come in, and scroll or drag to see the rest. While part of the inside is off screen, the minimap shows in the corner of the canvas; click or drag in it to move the view. Press **F** with nothing selected to fit the whole inside anyway.

![Inside the CONTROLLER subsystem made by Group into Blocks, marked 1 to 3](https://voltecx-web.nguyenvanqui291.workers.dev/docs/manual/img/en/wiring/05-subsystem.png)

1. **‹ Back**, with its shortcut, Esc.
2. The path: each name is a way back to that level.
3. The minimap, while part of the inside is off screen.

A subsystem block has no parameters of its own until its definition declares some (see Masked subsystems below): Properties then says so and points you inside. Net labels cannot be placed inside a subsystem yet: leave the subsystem to label nets. Inside, a wire that would join a port to another net keeps the port's net, and joining two ports is refused. After a run, the probe works inside too (an inner net is recorded as `X1.m`, a port as the net outside).


### Masked subsystems

One definition can serve instances with different values, as a PLECS or Simulink mask does: a half-bridge whose instances run at different switching frequencies, or a PI block with its own gains. Declare a parameter on the definition with **Circuit > Subsystem > Subsystem Parameters > Define Parameter** (`circuit.defineSubsystemParam {"subsystem":"stage","name":"fsw","default":"100k","unit":"Hz","label":"Switching frequency","labelZh":"切換頻率"}`). Inside the subsystem, type its name where a value goes (`1/fsw`, `rtop`). Select an instance and Properties lists the parameters under **Subsystem parameters**, with the default greyed: type a value for this instance, or clear the field to go back to the default (**Circuit > Subsystem > Subsystem Parameters > Reset to Default**). A value may be an expression over the circuit's variables, so a sweep of a variable reaches inside the instances; set **expr** to false to accept numbers only. A default may use the parameters declared before it (`rbot` = `rtop/2`). **Expand Subsystem** puts the instance's values into the parts it expands into. Files that use parameters are saved as format version 2; files without them stay version 1.

## Buses

A bus carries several control signals on one wire: the three phases (abc), the dq pair, or a set of gate signals. Place a **Bus Mux** (Insert > Control) to join up to eight signals into one bus, a **Bus Demux** to split it again, and a **Bus Selector** to pick some elements (`index` = `1, 3`). Element-wise blocks (gain, sum, product, abs, min, max, limiter, integrator, PI, comparator, logic gates, dead time, delay) take a bus on any input and give a bus of the same width; a scalar on another input serves every element. Clarke, Park, the three-phase PWM, the three-phase sine source and SVPWM take or give a three-phase bus on their first pin (`a`, or `ga` for the PWM's gates) with the other pins of the group left open. A bus is drawn thicker than a wire, with a slash and its width. It is wiring only: before a run each bus is taken apart, so the circuit simulates exactly as the same drawing with separate wires (open the example **Three-phase inverter with buses**). After a run, probe an element by its net name: a demux output's name, or `{bus}_{k}` for one nobody named. A bus on a pin that takes none (an electrical pin, a block that is not element-wise) is reported when you run.

A PLECS model's vector signals import as buses when they fit (chapter 9).

### Example: the three-phase inverter on buses

The example **Three-phase inverter with buses** (`inverter3Bus`) is the three-phase inverter drawn with one wire for each three-phase set. The sine source `Ref` gives the three duty references on the bus `dabc`, the three-phase PWM takes them on its pin `a` and gives the three gate signals on its pin `ga` as the bus `g`, one `not` block inverts all three at once into the bus `gn`, and two demuxes split `g` and `gn` into the gate labels of the legs. From a terminal:

```sh
powercraft-cli run --cmd file.openExample --params '{"name":"inverter3Bus"}' \
  --cmd simulation.run --params '{}' \
  --cmd scope.measure --params '{"signals":["dabc_1","ga","i(La)"]}'
```

The run records the bus elements as `dabc_1`, `dabc_2` and `dabc_3` (the bus had no names for them) and the demux outputs by their own names (`ga`, `gb`, `gc`, `gan`, …). A control signal is recorded by its net name alone, without `v( )`. `dabc_1` has a mean of 0.500 and `i(La)` an RMS value of 15.696 A, the same as the example **Three-phase inverter** (`inverter3`) drawn with separate wires, to the last digit.

![The three-phase inverter on buses, marked 1 to 5](https://voltecx-web.nguyenvanqui291.workers.dev/docs/manual/img/en/buses/01-inverter.png)

1. `Ref`: the three-phase sine source gives the three duty references on one bus, `dabc`.
2. `PWM`: the three-phase PWM takes them on its pin `a` and gives the three gate signals as the bus `g`.
3. `N`: one `not` block inverts all three into the bus `gn`.
4. `DG`: a demux splits `g` into `ga`, `gb` and `gc`.
5. `DGN`: a demux splits `gn` into `gan`, `gbn` and `gcn`.

### Limits

- A bus is for control signals only. A bus on an electrical or thermal pin, or on a block that is not element-wise and has no pin group, stops the run with the block, the pin and the bus width.
- A mux takes 2 to 8 inputs (`n`), and a demux gives 2 to 8 outputs; a demux's `n` must be the width of its bus. A bus is at most 64 elements wide (a mux input that is itself a bus adds all its elements).
- The inputs of an element-wise block must have the same width, or be scalars; buses of different widths on one block stop the run.
- A bus fed back into itself through a mux is refused ("the buses do not settle").
- Each element-wise block on a bus becomes one copy per element (`G1[1]`, `G1[2]`, …) before the solvers compile the circuit, so a message from the run can name such a copy.

## Parameter hints

Hover over a parameter name in the Properties panel to see what it means. With **View > Appearance > Language > 繁體中文** the hint is in Traditional Chinese. (Chapter 14 has the other settings.)

## Moving around

Navigation works as in Figma. A two-finger scroll on a trackpad moves the view; Cmd+scroll or a pinch zooms about the pointer. **H** picks the **Pan** tool: a left drag moves the view, and a click selects nothing. **Esc** goes back to the **Select** tool. Hold **Space** to pan in any tool: the tool dock shows Pan while Space is held, and letting go gives your tool back. An empty circuit says how to place the first part; the status bar's first tip shows how to move around under the pointer: *Two fingers or H pan; pinch, ⌘-scroll or a mouse wheel zooms* (with Preferences › Scroll wheel on Trackpad: *Two fingers, a mouse wheel or H pan; pinch or ⌘-scroll zooms*).

| Action | How |
|---|---|
| Zoom | Pinch, Cmd+scroll (Ctrl+scroll on Windows and Linux), Cmd+Plus (or Cmd+=) and Cmd+Minus; a mouse wheel when **Scroll wheel** is Auto or Mouse; Cmd-drag on empty space zooms to the box drawn |
| Fit everything | Cmd+0, Home or Shift+F (**View > Fit to Window**), or double-click empty space |
| Zoom to the selected parts | F (**View > Zoom to Selection**) |
| Pan | A trackpad's two-finger scroll, always; the Pan tool (**H**) and a left drag; hold Space and drag in any tool, or drag with the middle button; Shift+wheel pans sideways; a mouse wheel when **Scroll wheel** is Trackpad. A right drag does nothing: the right button only opens the context menu |
| Select tool | **Esc**, or the arrow in the tool dock |
| Next or previous open circuit | Ctrl+Tab and Ctrl+Shift+Tab, or Alt+PageDown and Alt+PageUp |
| Tab and side bar menus | Right-click a circuit tab: Close, Close Others, Move to New Window, Show in Finder (Explorer, folder; for a circuit saved to a file). File › Export › Rebuild Script writes the circuit as a script of engine commands that builds it again (run it with `script.run`; the script names what it does not rebuild yet, and a circuit with a subsystem or IC is refused). File › Save All saves every open circuit with unsaved changes to its own file (a circuit that has no file yet is named in the status line; use Save As for it), and File › Close All closes every circuit, asking about each one with unsaved changes as Quit does. File › Save As Older Version writes a copy of the circuit as an older file format version (`file.saveAsVersion {path, version}`), so an older Voltecx opens it: below version 3 every sheet's parts go onto one sheet at their places (the netlist is the same) and the reply lists what was dropped; a circuit with subsystem parameters cannot go below version 2 and is refused by name. The open circuit keeps its own file and everything in it. Right-click a tab of the bottom panel: Close, Close Others, Maximize (or Restore), Collapse Panel (or Expand Panel: the panel folds down to its tabs, and a click on a tab opens it again; at the right or left there is none), Panel Position, Hide Panel. Right-click the side bar's title: Hide Side Bar; a tab of the secondary side bar: Close Secondary Side Bar |
| Context menu | Right-click a part: Cut, Copy, Rotate, Flip, Flip Vertically, Duplicate, Disable (or Enable), Create Subsystem, Delete, Properties (on a pin also Disconnect Pin). Right-click empty canvas: Undo, Redo, Paste, Place Part, Wire Tool, Select All, Fit to Window. Right-click a wire: Rename Net, Delete Wire, Draw Net as Labels. Right-click a net label: Rename Net, Draw Net as Wires. Probe on either after a run |

**Scroll wheel.** **Edit > Preferences > Scroll wheel** sets what a mouse wheel does on the schematic and on the scope's plots. Two fingers on a trackpad always pan, whatever the setting. **Auto** (the default) zooms about the pointer with a mouse wheel, and treats a wheel that scrolls in fractions of a line (a Windows precision touchpad, smooth scrolling on Linux) as the touchpad it is, so it pans. **Mouse** zooms with every wheel; **Trackpad** moves the view with the wheel too. Shift with the wheel pans sideways, and pinch and Cmd+scroll (Ctrl+scroll) zoom about the pointer in every mode. On a Mac the trackpad and the Magic Mouse report smooth scrolling and pan; an ordinary mouse wheel zooms. The status bar's tip and **Help > Keyboard Shortcuts** say which mode is on. The first time a mouse wheel zooms under **Auto**, a note says so once and names the setting that makes the wheel pan.

**The same gestures on the scope.** The scope's plots follow the same rules, with one difference: with **Zoom Box** on (the default) a drag draws a box and zooms to it, and you hold Space or drag with the middle button to pan; with **Pan** on a drag pans. Cmd-drag zooms to a box in any mode, a double click fits, and the right button only opens the menu. Over a plot, an axis, a legend entry or a cursor, the status bar says what a drag or a click does there. **Help > Keyboard Shortcuts** lists every gesture under **Mouse and trackpad**.

**First use.** The first time you click on the schematic, a note names the gestures nothing on screen shows: a drag on empty space selects a box, Space-drag pans, a double-click opens a part's Properties, and Option+Shift-drag (Alt+Shift-drag on Windows and Linux) lifts a part off its wires. The first click on a scope plot does the same for the scope: drag an axis or turn the wheel over it to zoom that axis alone, double-click to fit, click a legend entry for its measurements, and step the active cursor with the arrow keys. Each note comes once, never while the tour shows its cards, and can be read again in **View > Notifications**.

**What the pointer says.** The pointer shows what a drag does: the move arrows over a part, a crosshair over a pin (a wire starts there), the four-way arrow over a wire (a drag bends it), and the open hand with the Pan tool or while Space is held (closed while you drag). The status bar names the thing under the pointer and what a click or a drag on it does, for example *R1: drag to move · double-click for Properties · right-click for actions*. Zoomed out, a pin picks up the pointer only within a quarter of its part, so small parts stay easy to grab, and the pin under the pointer shows as a filled dot. While the schematic has the keys it has a thin focus edge: the part keys (**R**, **L**, **C**, **M**…) act there. The library's tooltip names a part's own placing key.

**Zoom to Selection** fits the selected parts to the window with a small margin. With nothing selected, it fits the whole circuit. Shift+F is a second key for Fit to Window. The menu bar leaves it out, so it does not list the same action twice; Quick Open and Help > Keyboard Shortcuts list it as View > Zoom to Fit.

**Minimap.** Choose **View > Minimap** to show a small overview in the bottom-right corner of the schematic. It draws the parts (the selected ones in the accent colour), the wires and a rectangle for the area you see. Click or drag in it to move the view there. On a circuit (or a subsystem's inside) with more than 60 parts the minimap shows by itself; turning it off in **View > Minimap** keeps it off, and **Edit > Preferences > Minimap on large circuits** turns the automatic minimap back on. It stays hidden when the schematic area is smaller than 360 by 240 points.

**Zoomed out.** Part names stay at least 11 points high at every zoom, so a large circuit still says what each part is. Below 50 % the values and pin names are left out, and below 30 % each subsystem is drawn as one box with its subsystem's name in it (its designator stays beside it). Below 15 % only the shapes and the subsystem boxes are drawn. None of this changes the circuit.

**Grid spacing.** **View > Grid Spacing** sets how coarse the grid is: 1, 2, 5 or 10 grid units. The grid dots, dragging a part and placing a part with a key all snap to it. The minimap and the spacing are remembered the next time you start the app.

**Net names.** Each net you named (VIN, SW, GND, a gate signal) writes its name once along each connected run of its wire, just above a horizontal piece and in the net's colour, the way a printed Altium or KiCad sheet reads. Names the editor made up (n12, and ground's 0) are not written, and a net drawn as labels shows its name in the labels already. **View > Net Names** turns them off or on; the setting is saved with the circuit, so **File > Export > Schematic** writes the same names. Name a net with **Net label…** on its wire's right-click menu.

**Part text.** Under its designator each part writes its value, its part number or both: **View > Part Text > Value**, **Part Number** or **Value and Part Number** (the default), saved with the circuit and used by the export too. A resistor, capacitor or inductor writes `100 µF · EEHZC1V101P` with both. A switch or diode writes its part number (its Part number parameter, or the library device it uses), else its ratings (the Voltage rating and Current rating parameters, `100 V, 40 A`), else its on-resistance; **Value** skips the part number. A rating you have not entered is never shown.

**Symbol style.** A resistor is drawn as a box, the IEC 60617 symbol that KiCad and Altium use by default. **View > Symbol Style > IEEE 315 (Zig-Zag Resistor)** draws it as a zig-zag instead, and **IEC 60617 (Box Resistor)** goes back. Only the drawing changes: the pins stay where they are, so no wire or connection moves. The setting is saved with the circuit and used by **File > Export > Schematic**. An inductor is a row of semicircles in both standards.

**IC colours.** **View > IC Colours** fills every IC and subsystem box in yellow with a dark-red outline, as industry schematic sheets draw them. Only the drawing changes, and the setting is saved with the circuit and used by **File > Export > Schematic**. The print theme stays black and white.

## Shortcut table

| Shortcut | Action |
|---|---|
| Cmd+N, Cmd+O, Cmd+S, Cmd+Shift+S | New, Open, Save, Save As |
| Cmd+W | Close the circuit (asks first when it has unsaved changes, chapter 14) |
| Cmd+Shift+N | New window (chapter 14) |
| Control+Cmd+F on a Mac, F11 elsewhere | Enter or exit full screen |
| Cmd+Z | Undo |
| Cmd+Shift+Z, Cmd+Y | Redo |
| Cmd+X, Cmd+C, Cmd+V | Cut, Copy, Paste |
| Cmd+A | Select all parts |
| Cmd+D | Duplicate |
| Cmd+F | Find and replace |
| F3 | Find the next match (Classic keymap) |
| E, F4 | Show the selected part's properties |
| Delete, Backspace | Delete the selection, or the selected wire |
| Cmd+Shift+E | Disable the selected parts, or enable them again |
| Cmd+R | Rotate a quarter turn (R too in the Default keymap) |
| X, Cmd+E, Cmd+Shift+F | Mirror left to right |
| Y | Mirror top to bottom |
| Shift+M | Move the selection with the pointer (click to put it down; M in the Default keymap) |
| Shift+G | Grab the selection with its wires (G in the Default keymap) |
| Insert, Shift+A | Place another copy of the part placed last, at the pointer |
| Cmd+G | Create a subsystem (opens a dialog) |
| W | Wire tool |
| Esc | Select tool |
| H | Pan tool: a left drag pans the view |
| Space (hold) | The hand in any tool, until you let go |
| Shift+P | Probe: click a wire, pin or part to put its voltage or current on the scope (P is Insert > Part) |
| R, L, C, D, G, V, I, S, M, T | Put a resistor, inductor, capacitor, diode, ground, DC voltage source, DC current source, switch, MOSFET or IGBT on the pointer; click to put it down |
| Shift+T | Text tool (T in the Default keymap) |
| Right click while placing | Cancel the part on the pointer, as Esc does |
| N | Place a net label on the pin under the pointer |
| ` (backtick) | Highlight the whole net of the wire, label or pin under the pointer (View > Highlight Net, as KiCad's `` ` ``); press it again, or click the canvas, to clear it |
| B | Bus tool (Circuit > Bus Tool, as KiCad's Place Bus) |
| Q | Mark the pin under the pointer no-connect, so the ERC no longer reports it open (Circuit > Net > No-Connect Flag, as KiCad's Q); press it again over the pin to clear the mark |
| Esc | Stop wiring or moving, leave the wire tool, close a dialog, let go of a selected wire, or clear the selection |
| Arrows, Shift+Arrows | Nudge by 1 or 5 grid steps |
| Alt while dragging | Drag a part without snapping |
| Alt+Shift (Option+Shift) while dragging a part | Lift it off its wires (LTspice Move); with **Wires follow moved parts** off, keep them |
| Tab, Esc, Down / Up (or `]` / `[`) | Accept, dismiss, next and previous suggestion on the canvas, once you clicked it (chapter 12) |
| F5, Cmd+Enter | Run the simulation |
| Shift+F5, Cmd+. | Stop |
| F6 or Cmd+Alt+Enter, F7 or Cmd+Shift+Enter | Pause, Continue |
| F8, Cmd+Shift+A | Animate (Shift+F8 in the Default keymap, where F8 is File > Sync with KiCad) |
| F2, Cmd+Shift+R | Rename the selected part |
| Cmd+K | Quick Open |
| ?, Cmd+/ | Keyboard shortcut list |
| Cmd+, | Preferences (chapter 14) |
| Cmd+L | Show the agent's chat with the keyboard in it, or hide the secondary side bar (chapter 12) |
| Cmd+Alt+B | Show or hide the secondary side bar on the right (Properties and Assistant tabs) |
| Cmd+B | Show or hide the side bar on the left |
| F1, Cmd+I | Component guide |
| Cmd+Plus (or Cmd+=), Cmd+Minus, Cmd+0 (or Home) | Zoom in, zoom out, fit |
| F, Shift+F | Zoom to the selection, zoom to fit |
| Ctrl+Tab, Alt+PageDown | Next circuit |
| Cmd+Shift+D | Design panel (beta) |

On Windows and Linux, read **Ctrl** for **Cmd**. **Ctrl+Tab** is the Control key on every system. A MacBook sends brightness and volume for F1–F12 unless you hold **Fn**, and has no Insert key, so every F-key and Insert action has a second key. In the web app the browser keeps Cmd+W, Cmd+N, Cmd+Shift+N, Cmd+T and Ctrl+Tab, so the menus there leave those keys out: use the menu, or Alt+PageDown and Alt+PageUp for the circuits.

**Coming from another tool.** With the Classic keymap one letter places a part, as in LTspice and PSIM: **R** a resistor, **C** a capacitor, **G** a ground. **Ctrl+R** rotates as in LTspice, **Ctrl+E** mirrors as in LTspice and **X** / **Y** mirror as in KiCad, **W** wires, **N** labels a net, **F5** runs, and **H** and Space pan as in Figma.

The menus show every key of an item: in the Default keymap **Circuit > Rotate** reads `R  ⌘R`, in Classic `⌘R`.

## Keymaps

**Edit > Preferences > Input and shortcuts** and the top of **Help > Keyboard Shortcuts** have a **Keymap** list with four choices: **Default**, **KiCad**, **Altium** and **Classic**. Point at the list or at a choice to read what it changes; the shortcut window and the menus always show the keys of the keymap in use. A new installation starts on **Classic**, the set described above: it suits engineers used to other power-electronics simulators, where one plain letter places one part. **Default** is based on KiCad's keys: **R** rotates, **G** grabs, **L** labels a net and **A** picks a part, so the parts on those letters take Shift. Where the two differ:

| Action | Classic | Default |
|---|---|---|
| Resistor, inductor, ground, DC voltage source | R, L, G, V | Shift+R, Shift+L, Shift+G, Shift+V |
| DC current source, MOSFET, IGBT, ammeter | I, M, T, U | none |
| Find Next | F3 | none (Edit > Find Next) |
| Rotate | Cmd+R | R, Cmd+R |
| Move off the wires | Shift+M | M |
| Grab with the wires | Shift+G | G |
| Text tool | Shift+T | T |
| Select tool | Esc | Esc |
| Edit the selected part's value in place (KiCad's Edit Value) | Enter, double-click | V, Enter, double-click |
| Net label | N | L |
| Pick a part (Insert > Part) | P | A |
| Power port on the pin under the pointer (KiCad's Place Power Symbol) | none (Circuit > Net > Power Port) | P |
| Next and previous grid spacing | none (View > Grid Spacing) | N, Shift+N |
| Rename a part (KiCad's Edit Reference) | F2, Cmd+Shift+R | U, F2, Cmd+Shift+R |
| Animate | F8, Cmd+Shift+A | Shift+F8, Cmd+Shift+A |
| Sync with KiCad (KiCad's Update PCB from Schematic) | none (File > Sync with KiCad) | F8 |

Every other key is the same in both: **`** highlights the net under the pointer, **B** picks the Bus tool, **Q** marks the pin under the pointer no-connect, **W** wires, **Shift+P** probes, **X** and **Cmd+E** mirror, **C**, **D** and **S** place a capacitor, diode and switch. In both keymaps a right-click cancels the part on the pointer, as Esc does. Switching rewrites your bindings to the chosen keymap and puts any keys you changed aside; **Undo** beside the list puts the keymap and your keys back. Keys you change afterwards apply on top of the keymap, and **Reset** returns a key to the keymap's. The choice is remembered with the other preferences.

### KiCad and Altium

**KiCad** is the Default keymap plus KiCad's **Cmd+F1** (Ctrl+F1), which lists the keys, and **F3**, which finds the next match; Default leaves both out because a MacBook sends F-keys only with Fn, and **Cmd+/** or **?** list the keys too. The Default keys already do what KiCad 9's schematic editor does with **L** (net label), **A** (add a part), **N** and **Shift+N** (grid), **U** (Edit Reference), **V** (Edit Value: the selected part's value opens in place, as Enter does), **F8** (Update PCB from Schematic: here File > Sync with KiCad, which keeps the exported KiCad project in step), **W**, **M**, **G**, **R**, **X**, **Y**, **E**, **Delete** and **Insert**, as KiCad's own manual names them, and with KiCad's **Cmd+Z**, **Cmd+Y** (**Cmd+Shift+Z** on a Mac), **Cmd+S**, **Cmd+F**, **Cmd+X**, **Cmd+A**, **Cmd+D** and **Home** (**Cmd+0** on a Mac), and with its schematic editor's **B** (Place Bus) and **Q** (Place No Connect Flag), as its hotkey list names them.

**P**, KiCad's Place Power Symbol, puts a power port on the pin under the pointer in Default and KiCad (Circuit > Net > Power Port): the net-label dialog opens with the kind set to rail, you type the rail's name (`VIN_48V`), and the net is drawn as rail symbols at every pin instead of a supply wire. Two ports with the same name are one net. A ground stays a part (**Shift+G**). In Classic, P keeps the Part tool and the power port has no key.

Two KiCad keys have no Voltecx action. **F**, KiCad's Edit Footprint, zooms to the selection, because footprints are chosen on the board. **J**, KiCad's junction, does nothing, because Voltecx draws a junction wherever wires meet.

**Altium** adds Altium Designer's keys beside the Default ones, where they take no key Voltecx needs:

| Action | Altium keymap adds |
|---|---|
| Zoom in, zoom out | PgUp, PgDn |
| Fit to window | Cmd+PgDn |
| Run the simulation | F9 |
| Show or hide the grid | Cmd+Shift+G |

Altium's **Space** (rotate), **Ctrl+W** (wire) and **F1** (key list) keep their Voltecx meaning: Space pans, Ctrl+W closes the browser tab in the web app, and F1 opens the Component Guide. The keys come from KiCad's and Altium's public documentation only.

## Change a shortcut

Open **Help > Keyboard Shortcuts** (**?** or Cmd+/). The window lists the mouse and trackpad gestures first (including double-clicks, Backspace and the scope's cursor and axis drags), then every binding by menu. Type in **Filter shortcuts** to keep only the rows whose action, menu or keys contain every word you type, in English or Chinese: `zoom`, `scope`, `F5`. A second key such as **R** for Rotate in the Default keymap has its own row. Click **Change** beside an action and press the new keys. **Reset** puts the original back, and **Reset All** (shown once you have changed a key) puts every binding back, and **Undo** beside the Keymap list brings yours back. A key already in use is refused where both would act: the scope's keys work only with the pointer over the scope and the drawing keys only over the canvas, so one key can do one thing in each. After a refused key the row keeps recording: its field, framed in red, shows the refused keys and *Press the new keys…*, so press other keys or Esc to stop. Backspace, Tab, `[` and `]` without a modifier are kept for deleting and for the canvas suggestions. The clipboard keys and Space-to-pan cannot be changed; in Preferences their rows read *Fixed* beside a lock instead of **Change**. Keys the system keeps are refused: Cmd+H, Cmd+Q and the like on a Mac, and Alt+F4, Alt+Tab, Alt+Space and Ctrl+Alt+Delete everywhere, so your keys work on every machine you use; an F-key you pick on a Mac is taken with a note that a MacBook needs Fn for it. Your bindings are remembered.

To take your keys to another computer or share them with a colleague, click **Export Keys…** in the same window: it saves the keymap and every binding you changed as a small `.json` file. **Import Keys…** on the other machine reads such a file and uses its keymap and bindings in place of yours, and **Undo** beside the Keymap list brings yours back. A file with a key Voltecx cannot read is refused whole, and the status bar names the file and the binding. In the web app, **Export Keys…** downloads the file; importing needs the desktop app.

## Quick Open

Press **Cmd+K**, type a few letters of a command's name or id (`sweep`, `explain`, `template`) and press Enter. This is the quickest way to reach a command that has no menu item. A command that needs parameters opens a form (or, for a command without one, a box where you type them as JSON).

The words can come in any order and each may be the start of a word, part of one, or have one letter wrong: `run sim` finds **Simulation > Run Simulation**, `exp wave` finds **File > Export > Waveforms (CSV)**, `simulaton` still finds the simulation commands, and Chinese text such as `匯出波形` works whatever the interface language. The best matches come first, then the commands you ran from the palette lately. With nothing typed, the palette lists the last five commands you ran from it at the top. A greyed-out command says why it is not available now (for example, run a simulation first).

The palette also opens examples and recent files. What you type lists the matching examples first, then the matching recent files, then the commands, each under its heading: `buck` finds the buck examples and a recent `buck_v2.pcraft`. With nothing typed, your recent files come first, then the commands. Start with `>` to search the commands only. The highlighted row is the best match of any section, so `run sim` still highlights **Simulation > Run Simulation** under the examples.

The right side previews the highlighted row. An example shows its schematic and its main waveform, as in **Help > Examples**. A recent file shows its schematic and the waveform of the result saved in it (a file saved as a bundle keeps its result; a plain file says it has none). A command shows its menu path, its id, its keys, whether it can run now and its parameters.

| Key | In the palette |
| --- | --- |
| Up, Down | Move through the rows; the preview follows |
| Enter | Open the example or file, or run the command |
| Cmd+Enter | Open the example or file and run its simulation |
| Esc | Close the palette |

## The menu bar on a Mac

On macOS the menus are in the system menu bar at the top of the screen, as in VS Code, not in a row inside the window. They are the same menus, in the language you picked, and they follow your own shortcuts.

- **Voltecx** holds **About Voltecx**, **Settings…** (⌘,; **Preferences** before macOS 13), **Services**, **Hide Voltecx** (⌘H), **Hide Others**, **Show All** and **Quit Voltecx** (⌘Q). Quit asks about unsaved circuits first, as **File > Quit** does elsewhere.
- **Edit > Undo, Redo, Cut, Copy, Paste and Select All** act on a text field while you type in one, and on the circuit otherwise.
- **Window** has **Minimize**, **Zoom** and the list of this window and a detached scope. A window opened with **File > New Window** runs as its own program, so it lists its own windows only.
- **Help** has the system's search field: type a few letters to find a menu item.

The menu bar shows the ⌘ keys. Keys without ⌘ (**R**, **W**, **F5**, **Shift+M**, **Ctrl+Tab**) work as before; Quick Open and **Help > Keyboard Shortcuts** list them. With the toolbar hidden, run with **Simulation > Run Simulation** or **F5**.
