Import a library
import_libraryConvert exported library JSON back into Altium PcbLib or SchLib files, restoring footprints, symbols, and embedded models while warning about missing model data.
Instructions
Import components from JSON data into an Altium library file. Accepts JSON in the format produced by export_library, enabling round-trip workflows: a PcbLib export's embedded_models are restored alongside the footprints, and a body whose model the data does not contain is reported in warnings. Auto-detects library type (PcbLib/SchLib) from the JSON data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| append | No | If true, append to existing library instead of overwriting. Default: false | |
| json_data | Yes | JSON data containing components to import. Should have 'file_type' (PcbLib/SchLib) and 'footprints' or 'symbols' array. | |
| output_path | Yes | Path where the new library file will be created (.PcbLib or .SchLib) |