pcb_rebuild_pours
Rebuild copper pours so they reflect current tracks, pads, vias, and design rules, replacing manual rebuild-all steps. Rebuild specific pours by ID or all pours, returning which succeeded or failed.
Instructions
Rebuild (re-fill) copper pours so they reflect the current tracks, pads, vias and rules. This replaces the manual "rebuild all copper" step in the EasyEDA app. Pass primitiveIds to rebuild specific pours, or omit it to rebuild every pour. Returns which pours were rebuilt and which failed with a reason, never the poured geometry. Note: on EasyEDA Pro 3.2.206, EasyEDA cannot rebuild a pour that was created through the API; the failure is reported per pour, with a note telling you to ask the user to rebuild all copper in the PCB editor (Shift+B). Warning (upstream EDA bug, pro-api-sdk issue #34): pours reflow using the design-rule snapshot taken when the document was opened, so rule changes written via the API do not take effect until the PCB document is closed and reopened; reopen it before rebuilding after rule changes. Rebuilding does not cut internal-plane anti-pads for different-net vias created after plane generation (issue #32).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes | Target document UUID — auto-switches to this document before executing. Get UUIDs from list_instances or editor_get_open_tabs. | |
| instance_id | No | Target EasyEDA instance ID (8-char hex). Required when multiple instances are connected. Omit when only one instance is connected (auto-selected). Use list_instances to see connected instances. | |
| primitiveIds | No | Pour primitive IDs to rebuild (omit to rebuild all pours) |