Editing and saving
Changing a circuit, and what CirSpice writes when you save.
User guide / 8. Editing and saving
Select and move
Click a part, wire or label to select it; shift-click adds or removes; drag on empty space to select everything in a box. Drag the selection to move it. Wires stay straight and joined as you move parts. Drag a wire's end or corner to move that point, or the middle of a straight wire to move that segment.
The Arrange menu rotates (⌘] and ⌘[), flips and deletes. Right-click (or Control-click) anything for its own menu: Cut, Copy, Paste, Duplicate, Rotate, Flip, Delete and Edit Attributes on a part.
Place parts and wires
- Parts: pick one from the toolbar or the Component menu, then click the schematic to place it. On the schematic, a single key picks the common ones: R resistor, C capacitor, L inductor, D diode, G ground, V voltage source, B battery, I current source, N NPN, M NMOS, O opamp. If a part needs a value, such as a model name, CirSpice asks for it.
- Wires: the Wire tool (W on the schematic) adds a corner at each click. Clicking a pin or a wire, double-clicking or pressing Esc ends the wire. Wires that only cross do not join; View > Wire Hops draws a small hop where they cross.
- Labels: the Text tool (T) asks for a name, then each click names the net of the pin or wire you click.
Space switches between the last tool and Select, and Esc goes back to Select.
Change a part's values
Double-click a part to open its attributes: its name, value, model and the fields its type has (listed per type in Part types). Each field applies when you press Return, and a value the part cannot take is refused with the reason. Renaming a part follows everywhere the circuit names it, such as a plot of its current.
Undo
Every change, to the schematic, a part or the analysis limits, is one step of undo (⌘Z) and redo (⇧⌘Z). An edited circuit shows a dot in its window's close button, and closing it asks whether to save.
Save
File > Save (⌘S) writes your changes into the .CIR file. CirSpice changes only what you edited and keeps everything else byte for byte, so the file still opens in Micro-Cap 12. Save As (⇧⌘S) writes a copy and opens it; a circuit you have not changed is copied exactly.
CirSpice adds nothing of its own to the .CIR file. If an edit could not be written so that the file reads back the way the editor shows it, CirSpice refuses to save and says why; your file on disk is left as it was. The editing and saving messages list each case.
CirSpice's own file
What CirSpice remembers that Micro-Cap does not, such as each analysis's plot groups, colours, ranges and cursors, goes in a small file next to the circuit, with the same name and the extension .cirmeta: Buck.cirmeta beside Buck.CIR. Copy it along with the circuit to keep your plot setup; without it, the circuit opens with the plots the file itself describes.
- Opening a circuit never writes this file; saving does.
- If the .CIR changed outside CirSpice since it was written, the plot setup still applies, with a notice.
- A
.cirmetawritten by a newer version of CirSpice, or one CirSpice did not write, is left untouched.
New circuits
File > New (⌘N) makes an empty circuit, named circuit1, circuit2 and so on until you save it. The file it saves is a Micro-Cap 12 circuit.