Build an index of footprint names across a folder of PcbLib files and run simple fuzzy searches against that index.
This is useful when a project has many local footprint libraries and you need to find which library contains a footprint before inserting it into a board or splitting/combining libraries.
AltiumPcbLib.from_file(...)- Iterating
pcblib.footprints - Building a
{library_filename: [footprint_name, ...]}dictionary - Searching footprint names with a lightweight Python fuzzy matcher
From the repo root:
uv run python examples\pcblib_find_footprint\pcblib_find_footprint.pyTo scan a different folder:
uv run python examples\pcblib_find_footprint\pcblib_find_footprint.py --pcblib-dir path\to\pcblibs --query R0603 --query TC2030The example uses queries such as r0603, tc2030, msop, and tp smt to
show exact, partial, and approximate matches.
The script prints the discovered footprints and writes:
examples/pcblib_find_footprint/output/footprint_index.json