Positioning a footprint with pcbnew's Python API
Learn how to position and rotate a footprint on a PCB by scripting pcbnew's Python API directly, without going through the GUI.
Placing a grid of footprints with pcbnew's Python API
Position several identical footprints in a grid by script — useful for an LED panel or a row of connectors — with pcbnew or KiCad's IPC API.
Flipping a footprint to the back layer with pcbnew's Python API
Move a footprint from the front to the back layer of the PCB by script, for a component mounted on B.Cu — with pcbnew or KiCad's IPC API.
Duplicating an existing footprint with pcbnew's Python API
Clone an already-placed footprint instead of recreating one from scratch, to quickly reproduce a component with its properties — with pcbnew or KiCad's IPC API.
Giving a pad an orientation independent of its footprint with KiCad's Python API
Rotate a single pad without touching the rest of the footprint — and the tested trap that silently loses that setting on one of KiCad's two APIs.
Placing components on a circle (LED ring) with KiCad's Python API
Place N footprints on a perfect circle and orient them outwards by script — a 24-LED WS2812B ring, with pcbnew or KiCad's IPC API.