add_copper_zone
Create an unfilled copper zone on a specified layer for a given net. Define polygon corners, clearance, and thermal relief settings for KiCad PCB design.
Instructions
Create an unfilled copper zone. Call fill_zones afterward to compute 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
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| net_name | Yes | ||
| layer | Yes | ||
| corners | Yes | ||
| clearance | No | ||
| min_thickness | No | ||
| thermal_relief | No | ||
| thermal_gap | No | ||
| thermal_bridge_width | No | ||
| priority | No | ||
| pcb_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| net | Yes | ||
| layer | Yes | ||
| corners | Yes | ||
| clearance_mm | Yes |