pcb_renumber_pads
Renumbers PCB footprint pads in spatial order to assign sequential designators automatically, eliminating manual clicking for grid-based numbering.
Instructions
Renumber the current PcbLib footprint's pads in spatial order.
The non-interactive form of the community RenumberPads tool: instead of clicking each pad in order, the footprint's pads are sorted by position and assigned sequential designators. Rows/columns are banded by a small tolerance so a grid numbers cleanly. Operates on the active PCB library's current footprint.
Args:
order: lr_tb (default) numbers rows top-to-bottom,
left-to-right within a row; tb_lr numbers columns
left-to-right, top-to-bottom within a column.
start: First designator number (default 1).
increment: Step between successive pads (default 1).
prefix: Optional string prefixed to each number (e.g. A ->
A1, A2).
Returns: {"renumbered", "order", "mapping": [{old, new}, ...]} or an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | No | lr_tb | |
| start | No | ||
| prefix | No | ||
| increment | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||