On This Page (2)
Examples Showcase
18 runnable, self-contained Python examples progressing from 40-line Hello World scripts to controlled-impedance highlighting, variant-aware fabrication bundles, Micro-STEP CAD, and 3D HLR virtual layers. Every example runs headlessly with zero private corpus dependency.
Featured Showcase
Analytic KiCadFabView & Virtual Fab Layers (34-Part Showcase)
34-Part / 24-STEP Virtual Fab Layers + HLR + vdoc
Controlled-Impedance & Diff-Pair Highlighting SVGs + HTML Review
Controlled-Impedance & Diff-Pair Highlighting SVGs
Variant-Aware Manufacturing Release (Gerber X2/X1, Drill, IPC-2581, PnP, BOM)
Variant-Aware Gerber X2/X1 + Drill + IPC-2581 + PnP/BOM
Pure-Python ISO 10303-21 AP242 Micro-STEP 3D CAD Export
Pure-Python AP242 Micro-STEP CAD Export
Bake 3D HLR & Polarity vdoc Virtual Layers into .pretty Footprints
3D HLR & Polarity vdoc Baking into .pretty Libraries
KiCad 10 Embedded 3D STEP Extraction & Re-Packing
KiCad 10 Embedded 3D STEP Extraction & Packing
Multi-Sheet Bus-Alias Netlist, Compiled Graph & Variant BOMs
Multi-Sheet Bus-Alias Netlist, Compiled Graph & Variants
Hello World: Create a KiCad 10 PCB & Render SVGs
Hello World: Programmatic KiCad 10 PCB + SVG
All Examples
Hello World: Create a KiCad 10 PCB & Render SVGs
Create a KiCad 10 board from scratch with an Edge.Cuts outline, silkscreen text, copper tracks, vias, and a native QR barcode, then render Paper and Dark SVG previews.
Hello World: Author a KiCad 10 Schematic & Render SVG
Build a KiCad 10 schematic sheet from scratch with a title block, wires, net labels, junction, and banner note, then render an oracle-calibrated SVG through Plotter IR.
Hello World: Author a Custom Symbol Library & Render SVGs
Author a custom 3-pin LDO LibSymbol inside KiCadSymbolLib, merge symbols from a staged .kicad_sym library, save the combined library, and render symbol SVG previews.
Hello World: Author an 8-Pin SOIC-8 Footprint & Render SVGs
Author an 8-pin SMD SOIC-8 KiCadFootprint with rounded rectangular pads, silkscreen, courtyard, and fab graphics, save .kicad_mod, and render Paper and Dark SVG previews.
Hello World: Scaffold a Complete KiCad 10 Project
Scaffold a .kicad_pro + .kicad_sch + .kicad_pcb tree with KiCadProject.create(), add impedance net classes, project text variables, and assembly variants.
Inspect PCB Board Stats, Stackup & Multi-Span Drills
Inspect 4-layer KiCad 10 boards with KiCadPcb and KiCadFabView to report outline size, interior cutouts, copper stackups, drill pairs, via tenting, and counts in JSON.
Lossless S-Expression Repair & KiCadFilterPipeline
Query and repair malformed footprint pads with parse_sexp(), find_all_elements(), normalize_unsafe_footprint_pad_sizes(), and KiCadFilterPipeline without disturbing untouched tokens.
Multi-Sheet Bus-Alias Netlist, Compiled Graph & Variant BOMs
Load a hierarchical bus-alias project with KiCadDesign, export design JSON (including include_pcb=False), compile netlists and KiCadCompiledSchematicGraph, render per-sheet SVGs, and compare variant BOMs.
Query KiCadFabView, Per-Layer SVGs & Annotated Inspection Views
Query KiCadFabView layers, holes, components, and JSON round-trip, emit per-layer SVGs via to_layer_svgs(), and render annotated top (pad labels + origin) and mirrored bottom views in Paper + Dark themes.
Controlled-Impedance & Diff-Pair Highlighting SVGs + HTML Review
Read KiCadProject net classes (RF_50OHM, USB_90OHM_DIFF, ETH_100OHM_DIFF across F.Cu/B.Cu, PWR_3V3), recolor metadata-enriched Fab SVGs by data-net and data-kind, and emit Paper + Dark SVGs and HTML review pages.
Analytic KiCadFabView & Virtual Fab Layers (34-Part Showcase)
Render copper, 7 hatched interior cutouts, 24 embedded 3D STEP HLR assembly outlines, fitted designators, Pin 1 & polarity markers, diodes/LEDs, passives, pad labels, Gerbers, IPC-2581B, and native vdoc baking on a real KiCad 10 board.
Variant-Aware Manufacturing Release (Gerber X2/X1, Drill, IPC-2581, PnP, BOM)
Produce a complete manufacturing release from impedance_4layer: Gerber X2 with virtual layers & cutouts, Gerber X1, Excellon NC Drill, IPC-2581B, per-variant PnP/BOM CSVs, and DNP crossout vs omit SVGs.
Pure-Python ISO 10303-21 AP242 Micro-STEP 3D CAD Export
Export top and bottom AP242 Micro-STEP 3D CAD assemblies from KiCadFabView with board outline, interior cutout, copper pads/tracks/vias, drill rings, and highlighted test points — zero OCCT or KiCad runtime required.
Bake 3D HLR & Polarity vdoc Virtual Layers into .pretty Footprints
Extract IC, diode, capacitor, and resistor footprints into a .pretty library, check User.* collisions, bake 3D HLR outlines and polarity markers with bake_virtual_layers_to_footprint(), and render before/after SVGs.
KiCad 10 Embedded 3D STEP Extraction & Re-Packing
Inspect board-scope kicad-embed:// 3D models, decode Zstandard + Base64 STEP bytes, verify MMH3-128 checksums, and re-pack into a fresh portable KiCad 10 PCB with byte-exact round-trip verification.
Extract Project-Local .pretty & .kicad_sym Libraries with Lib Tables
Extract standalone .pretty footprints (preserving embedded STEP models) and .kicad_sym symbols from a KiCad 10 project, write fp-lib-table/sym-lib-table, and render footprint & symbol SVGs.
Schematic Plotter IR Themes (Color, Dark Blueprint, B&W & DNP)
Lower a DNP schematic once to Plotter IR and render default KiCad color, dark blueprint, print-ready black-and-white, and custom high-contrast DNP review SVGs with IR record statistics.
Native KiCad 10 Barcodes, Multi-Span Via Drill Pairs & Tenting
Add native QR and DataMatrix barcodes to a 4-layer via-span board, inspect through/blind/buried drill pairs and tenting via KiCadFabView, emit split NC Drill files, and render Paper + Dark mask SVGs.