add_copper_zone
Create an unfilled copper zone for ground or power planes with configurable clearance, thermal relief, and priority, then compute fills afterward.
Instructions
Create an unfilled copper zone: a ground plane, power plane, or any filled copper pour. Call fill_zones afterward to compute the fills.
Args:
net_name: Name of the net to assign to this zone (e.g. "GND")
layer: Copper layer (e.g. "F.Cu", "B.Cu")
corners: List of {x, y} dicts defining the zone polygon (min 3)
clearance: Zone clearance in mm
min_thickness: Minimum copper thickness in mm
thermal_relief: Use thermal relief pads (True) or solid connection (False)
thermal_gap: Thermal relief gap in mm
thermal_bridge_width: Thermal relief bridge width in mm
priority: Zone fill priority (higher fills first)
pcb_path: Path to .kicad_pcb file. Optional; omit to use the configured default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | Yes | ||
| corners | Yes | ||
| net_name | Yes | ||
| pcb_path | No | ||
| priority | No | ||
| clearance | No | ||
| thermal_gap | No | ||
| min_thickness | No | ||
| thermal_relief | No | ||
| thermal_bridge_width | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| net | Yes | ||
| layer | Yes | ||
| corners | Yes | ||
| clearance_mm | Yes |