Load an existing PcbLib, iterate its footprints, and render footprint-local SVG files.
This sample uses the RT Super C1 PcbLib asset because it contains many footprint shapes. It writes one composed SVG for each footprint and one SVG per visible footprint layer. The output is useful for quick visual review of pad, overlay, solder-mask, paste-mask, and drill geometry without placing the footprint on a board first.
The SVG enrichment metadata is disabled in this sample so the files stay focused on review artwork instead of downstream PCB data enrichment.
AltiumPcbLib.from_file(...)- iterating
pcblib.footprints footprint.to_svg(...)footprint.to_layer_svgs(...)- using
PcbSvgRenderOptions(svg_display_scale=10.0, include_metadata=False) - writing a JSON manifest that records generated SVG paths
From the package root:
uv run python examples\pcblib_footprint_svg\pcblib_footprint_svg.pyexamples/assets/pcblib/RT_SUPER_C1.PcbLib
examples/pcblib_footprint_svg/output/footprints/
examples/pcblib_footprint_svg/output/layers/
examples/pcblib_footprint_svg/output/pcblib_footprint_svg_manifest.json