LTspice is where many power-supply designs start. You do not have to leave your files behind to try Voltecx. Voltecx reads LTspice .asc schematics and SPICE netlists, runs the analyses the file asks for, and writes your edits back into the original .asc file. This guide walks through a migration step by step and says plainly where the limits are.
LTspice is a trademark of Analog Devices, Inc. Voltecx is an independent product. It is not affiliated with, sponsored by or endorsed by Analog Devices. Voltecx reads LTspice files only so that you can keep working with them.
What to expect
- Import keeps the file. The original schematic is stored inside the Voltecx circuit. A file you import and export again without edits comes back byte for byte.
- Edits touch only their own lines. Change one resistor value and one line of the
.ascfile changes. Spacing, line endings and lines Voltecx does not understand stay as they were. - Nothing is dropped silently. A symbol, parameter or directive that Voltecx cannot map is listed in the warnings, and the rest of the file stays intact.
- What was measured. In a run on 2026-10-15, all 332 public LTspice sample schematics in our test corpus wrote back byte for byte, with no crash. Most of them also import and run a short simulation; the files that do not run usually define variables in an include file or script that was not published with them. The samples are files their authors published on GitHub, never files that ship with LTspice.
- What was not tested. No file written by Voltecx has been opened in LTspice itself. The guarantees come from the format rules and from tests on public files.
Step 1: Convert the schematic
In a terminal:
powercraft-cli convert design.asc design.voltecx
powercraft design.voltecx
Or, in the desktop app, choose File > Import and pick the file. File > Open also takes .asc files directly, as well as SPICE netlists (.cir, .net, .sp, .spice, .ckt). A new circuit opens with an automatic layout.
From a script or an AI assistant, the same step is the file.import command:
{"path": "design.asc", "format": "auto"}
Step 2: Point Voltecx at your symbol files
A symbol that LTspice does not build in is described by its own .asy file. Voltecx looks for it next to the schematic first, then in the folders you name:
powercraft-cli convert design.asc design.voltecx --sym ~/my-lib/sym --sym ~/other-lib/sym
With file.import, pass {"path": "design.asc", "symbolPaths": ["lib/sym"]} (up to 32 folders). A symbol file whose prefix is a primitive (R, C, L, D, V, I, MN, MP) imports as that part. The control-library symbols (gain, integrator, delay, limiter and so on), logic gates and the blocks of the public LTspicePowerSim library are recognised by the pin names in their symbol files. The symbol files that were read are stored in the circuit, so writing back opens no extra file. A symbol whose file is not found is named in one warning.
Step 3: Includes, parameters and models
.include, .inc and .lib lines are followed when you import by path. Voltecx reads every .param in an included file and the .model and .subckt definitions the schematic uses. Paths are relative to the file that names them. Cycles, nesting deeper than 8 levels, more than 64 files and files over 8 MB are skipped with a warning. A missing include is named in a warning, and if variables stay undefined, the error says they probably live in that file.
Step 4: Read the warnings
Read the import warnings before you trust a result. The ones that matter most for power circuits:
- MOSFETs with vendor or VDMOS models become an ideal switch driven by the gate-source voltage (on above 2 V, 10 mΩ). The vendor model is not read, and a warning says so. For switching loss, assign a device from the Voltecx library, which carries data-sheet values with their source.
- Named op-amps such as an LT part number become a generic op-amp, with a warning that the part's own model is not used.
- Zener breakdown is not modelled on import.
- Ratings and part data in
SpiceLine(V=,Irms=,mfg=) are reported, not used.Rser,LserandRparon inductors and capacitors are used: they become winding resistance, ESR, ESL and leakage or core-loss resistance. - Hierarchical sheets are not read.
Then check the topology. circuit.explain reads a circuit you did not draw and says, without simulating, what it is: the topology with a confidence, the role of each part (for example S1: high-side switch) and the main loops.
Step 5: Run what the file asked for
Voltecx keeps the analysis directives of the schematic instead of ignoring them:
| Directive | In Voltecx |
|---|---|
.tran |
The end time and maximum step of the simulation. A .tran without a maximum step gets one that keeps the run between 50 and a million steps |
.step (param, list, lin, oct, dec) |
A parameter step. .step temp and a step of a source give a precise warning |
.ac dec, oct, lin |
An AC sweep. lin becomes a log sweep, with a warning |
.op, .dc, .tf |
The DC operating point, a DC sweep of the first source, and the DC transfer function |
.meas (TRAN, AC, OP, DC) |
Translated: AVG, RMS, MAX, MIN, PP, INTEG with FROM/TO, FIND ... AT, FIND ... WHEN, WHEN, TRIG ... TARG and PARAM. Functions such as ph() are refused with a warning |
.options |
reltol, abstol, vntol, maxstep and method become simulation settings. Quoted method="gear" and modtrap are read. The rest is listed as ignored |
.ic |
Initial conditions, including I(L1)= for an inductor current |
To run them, call analysis.runImported. It never edits the circuit:
{"what": "all"}
what is all, tran, step, ac, op, dc or tf. Stepped runs go in parallel on your cores. Each .meas line is evaluated on its own, so an error in one does not stop the others.
Step 6: Check the numbers twice
Voltecx has two solvers. fast is the everyday solver for switching circuits. reference is a deliberately simple solver whose job is to check the fast one. When a result surprises you, run it again with the reference solver:
powercraft-cli run --in design.voltecx \
--cmd simulation.run --params '{"solver": "reference"}' \
--cmd scope.measure --params '{"signals": ["v(out)"], "t0": "3m"}'
Both solvers are checked in the test suite against closed-form answers and against waveforms computed by ngspice for the same netlists. The current results are in the accuracy report.
Then pin the numbers that matter with powercraft-cli sim. It runs a file, measures, and sets its exit code by whether your limits hold, so it fits a CI job. It takes the .asc file directly:
powercraft-cli sim design.asc --tend 5m \
--expect 'mean(v(out), 4m, 5m) in 11.8..12.2' \
--expect 'pp(v(out), 4m, 5m) < 0.05'
The exit code is 0 when every limit holds and 3 when one does not.
Step 7: Edit, then write back
Edit the circuit in Voltecx, then export it into the original format:
powercraft-cli convert design.voltecx design.asc
or run file.exportNative in the app. What gets written:
| Change in Voltecx | Written to the .asc file |
|---|---|
| A value of a resistor, capacitor, inductor or source | Its SYMATTR Value line |
A variable (.param) |
The number in its directive; a new variable gets a new directive |
| End time or maximum step | The .tran directive |
| A moved part | Its SYMBOL line, with new wire stubs so nothing disconnects |
| An added resistor, capacitor, inductor, source or diode | A new SYMBOL with its name and value |
| A deleted part | Its SYMBOL lines (wires and labels stay) |
| A net label added, renamed or removed | FLAG lines, as described below |
Reported but not written: rewiring an existing symbol, a new orientation, a changed component type, removed variables, and parameters that live in a model (a diode's forward drop, for example).
Net labels
LTspice FLAG names become net labels. Flags that name a supply rail (VCC, VDD, VEE, VSS, V+, V-, +5V, -12V, 3.3V and similar) become rail labels. 0 and GND stay ground, and an IOPIN flag becomes a port. When you add, rename or remove a label in Voltecx and export, the change is written as FLAG lines; untouched flags keep their bytes.
Text encodings
LTspice often saves schematics in the Windows code page, so the micro sign and accented letters in comments are not UTF-8. Voltecx reads UTF-16 (little endian), UTF-8 and otherwise Windows-1252, and writes back in the same encoding, so an unedited file stays byte for byte. A character the code page cannot hold (the ohm sign, for example) makes the write-back UTF-8, with a warning.
Sources given as points
PWL(...) sources import as Voltecx PWL sources, and r=0 sets repeat. A PWL FILE= source stays DC, with a warning. An edited point list is reported as not written back to the .asc file.
Where to go next
- File compatibility: every format Voltecx reads and writes.
- Simulation: the two solvers and the accuracy report.
- Automation: run the same steps from Python, the command line or an AI assistant.