Extract editable source libraries from an Altium integrated library.
An .IntLib is a package that contains compiled component metadata plus
embedded source libraries such as .SchLib, .PcbLib, and sometimes
.PCB3DLib. This example opens an integrated library, prints a short summary,
extracts the embedded source files, and writes a simple .LibPkg that points at
the extracted files. When the extracted .SchLib or .PcbLib contains more
than one symbol or footprint, the example also splits it into one library file
per symbol or footprint.
AltiumIntLib(...)- Reading component and source-entry metadata
- Extracting embedded source streams with
extract_sources(...) - Opening extracted
.SchLiband.PcbLibfiles with the normal library APIs - Splitting multi-symbol
.SchLiband multi-footprint.PcbLibfiles - Writing an extraction manifest without reusing machine-local source paths
- Checking
component_parse_errorfor vendor IntLibs whose component metadata is malformed but whose embedded source streams are still extractable
From the package root:
uv run python examples\intlib_extract_sources\intlib_extract_sources.pyThe script writes:
examples/intlib_extract_sources/output/extracted_sources/
examples/intlib_extract_sources/output/split_sources/
examples/intlib_extract_sources/output/intlib_extract_sources_manifest.json
This is extraction-only. It does not rebuild or compile a new .IntLib.