# Import a whole vendor SPICE model library into Voltecx

To use a vendor's whole model library in Voltecx, download it from the vendor's own site, then click **Import Vendor Folder** (the import icon at the right of the library panel's title) (or run `library.importVendor {folder}`). Voltecx indexes every `.model` and `.subckt` in the folder's `.lib`, `.mod`, `.sub` and `.cir` files, checks each one through its SPICE import, and lists them in the library panel's **User Library** section. Voltecx never ships or downloads vendor files: the files stay on your disk, and only the index is kept, for you alone.

## Where do I download vendor models?

From the vendors' own pages. **Where to Get Vendor Models**, at the bottom of the User Library section (or `library.vendorSources`), links them:

| Vendor | Where the models are |
|---|---|
| Infineon | the simulation models page, or each product page |
| Wolfspeed | the LTspice and PLECS models page ("All SPICE Models") |
| Texas Instruments | each product page, simulation models (PSpice) |
| onsemi | the documentation library, simulation / SPICE models |
| Navitas | the downloads page, with note AN030 on using the models |
| EPC | design support, device models |
| ROHM | the design models page, or each product page |
| STMicroelectronics | each product page, CAD resources |

You accept each vendor's terms when you download.

## What does the import check?

| Result | Meaning |
|---|---|
| **ok** | The model maps (VDMOS, level-1 and level-3 MOSFETs, diodes, bipolar transistors, B sources, nested subcircuits). Anything not modelled exactly is listed as a warning. |
| **unsupported** | Voltecx cannot use it, and says why: a `.model` type it does not map (a JFET, say), or a subcircuit with nothing it can simulate. |
| **failed** | The model could not be read. |
| skipped | An encrypted file, or one over 32 MB. |

Pins named like `D G S`, `drain gate source`, `C G E` or `A K`, with a Kelvin source or `Tj`/`Tcase` thermal pins, are matched to the MOSFET, IGBT or diode symbol. Models with numbered or unknown pins go on the **needs pin map** list; they still place, with the model's own pin names.

## From the command line

```sh
powercraft-cli run --root ~/models \
  --cmd library.importVendor --params '{"folder": "wolfspeed"}' \
  --cmd library.vendorModels --params '{"status": "ok", "filter": "650"}'
```

`library.placeVendor {name}` places a model; `library.removeVendor {folder}` forgets a folder.

## Frequently asked questions

### Why doesn't Voltecx come with these models?

The vendors' terms do not allow us to redistribute their model files. Downloading them yourself takes a minute, and you always have the vendor's latest version.

### Is my index shared or uploaded?

No. It lives in your settings folder (`library/vendor-models.json`) and holds names, pins and results, not the models.

### Can I use encrypted models?

No. Encrypted PSpice or LTspice models cannot be read; ask the vendor for an open model.
