pcb_place_polygon_rect
Place a rectangular copper polygon pour for ground or power planes by specifying corners, layer, and net; set pour_over=false to pour around same-net tracks and pads instead of covering them.
Instructions
Drop a copper polygon pour on a rectangular area.
Useful for placing a ground plane or power plane: pass the board's corners, the layer, and the net name (typically "GND"). Set pour_over=False to force the pour around same-net tracks/pads instead of covering them.
Args: x1: First corner X in mils y1: First corner Y in mils x2: Opposite corner X in mils y2: Opposite corner Y in mils net: Net name to assign (empty = no-net fill, unusual) layer: Copper layer (default "TopLayer") pour_over: Pour over same-net objects (default True)
Returns: Dictionary confirming the polygon placement
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | ||
| x2 | Yes | ||
| y1 | Yes | ||
| y2 | Yes | ||
| net | No | ||
| layer | No | TopLayer | |
| pour_over | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||