add_keepout_zone
Define a polygon keep-out zone to restrict tracks, vias, pads, copper pour, and footprints on selected PCB layers.
Instructions
Create a keep-out zone that restricts placement of specified items.
Args:
corners: List of {x, y} dicts defining the zone polygon (min 3)
layers: Layers to apply keep-out to (default: ["F.Cu", "B.Cu"])
no_tracks: Restrict tracks in this zone
no_vias: Restrict vias in this zone
no_pads: Restrict pads in this zone
no_copper_pour: Restrict copper pour in this zone
no_footprints: Restrict footprints in this zone
pcb_path: Path to .kicad_pcb file
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| corners | Yes | ||
| layers | No | ||
| no_tracks | No | ||
| no_vias | No | ||
| no_pads | No | ||
| no_copper_pour | No | ||
| no_footprints | No | ||
| pcb_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| corners | Yes | ||
| layers | Yes | ||
| restrictions | Yes |