Export a library
export_libraryExport Altium libraries to JSON or CSV for version control, backup, or external processing. JSON captures full component data including embedded 3D models, while CSV provides a summary table for quick overview.
Instructions
Export an Altium library to JSON or CSV format for version control, backup, or external processing. JSON includes full component data and, for a PcbLib, the embedded 3D models the bodies reference (embedded_models, base64 STEP data keyed by model GUID) so an import restores them; CSV provides a summary table: name, description (and a symbol's designator), one count column per primitive kind, and the external 3D model / footprint link count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | Export format: 'json' for full data, 'csv' for summary table | |
| compact | No | For PcbLib JSON export: if true (default), omit per-layer pad data when stack_mode is Simple | |
| filepath | Yes | Path to the .PcbLib or .SchLib file |