pcb_get_polygons
Retrieves all polygon pours on the active PCB with outline, poured copper area, and region details to support copper coverage and current-capacity audits by net.
Instructions
Get all polygon pours on the active PCB with copper area.
Each polygon row carries:
index,name: positional + Altium-assigned namenet: assigned net (oftenGND/ a power rail)layer:TopLayer,InternalPlane1, etc.hatch_style:Solid/45Degree/Horizontal...pour_over: pour-policy flagarea_sqmils/area_mm2: the polygon OUTLINE's area. It does not change when the pour does, and it includes copper a clearance or the board edge has cut away.copper_area_mm2: the copper actually poured, summed over the polygon's regions with the holes cleared around other nets taken off. Use this for current-capacity audits (multiply by copper thickness for cubic copper, then apply IPC-2152 / IPC-2221). A hatched pour is tracks, so it reportscopper_pieceswith a region area of 0.copper_area_exact: false when a region's holes could not be read, in which casecopper_area_mm2is the regions' outer area and overstates the copper.copper_pieces: how many pieces the pour is in; 0 on a poured polygon means nothing was poured.poured: false for a shelved polygon.bbox_mm2: bounding-rectangle area; ratiocopper_area_mm2 / bbox_mm2shows how much of the outline is real copper.vertex_count: a smooth pour has 4-8 vertices; many more usually means hand-editing that may have introduced narrow necks.
Pair with pcb_calc_track_current_capacity for
per-net current-carrying analysis.
Returns:
Dict with {polygons: [...], count: N}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||