fill_zones
Compute copper zone fills for a .kicad_pcb file using pcbnew, replacing only the zone fill data while leaving all other content unchanged.
Instructions
Fill all copper zones on the board using pcbnew's zone filler.
pcbnew computes the fill; this server writes it. The board is handed to
pcbnew read-only and the computed polygons come back as data, so the file
that reaches the disk is the original with its zones' fills replaced and
every other byte untouched. Nothing else about it changes: not its format
version, not its layer names, not the constructs pcbnew does not model.
Requires KiCad's pcbnew Python bindings to be installed.
Args:
pcb_path: Path to .kicad_pcb file. Optional; omit to use the configured default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pcb_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| warnings | No | ||
| zones_filled | Yes |