pcb_calc_polygon_area
Calculates the boundary area of each copper polygon on the active board in square mils and millimetres, optionally filtered by net or layer, to estimate copper coverage and plane area.
Instructions
Report the area of each copper polygon on the active board.
Returns each polygon's overall boundary area in square mils and square millimetres, optionally filtered by net and/or layer. Useful for estimating copper coverage / plane area.
Args: net: Only polygons on this net (optional). layer: Only polygons on this layer name (optional).
Returns:
Dict with polygons (each: name, net, layer, area_sq_mils,
area_sq_mm) and count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| net | No | ||
| layer | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||