add_keepout_zone
Define restricted areas on a PCB by creating keep-out zones that block tracks, vias, pads, copper pour, or footprints on selected 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. Optional; omit to use the configured default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layers | No | ||
| corners | Yes | ||
| no_pads | No | ||
| no_vias | No | ||
| pcb_path | No | ||
| no_tracks | No | ||
| no_footprints | No | ||
| no_copper_pour | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layers | Yes | ||
| corners | Yes | ||
| restrictions | Yes |