pcb_scale
Scale selected free PCB primitives—tracks, arcs, vias, pads, fills, and text—by a ratio around a chosen anchor, while skipping components and polygons.
Instructions
Scale the selected free primitives by a ratio about an anchor.
Each coordinate maps P' = anchor + ratio*(P - anchor) and sizes
scale by ratio. Handles free tracks, arcs, vias, pads, fills and
text. Primitives inside a component, dimension, or polygon are skipped
(as are polygons/regions) -- so this scales free copper and artwork,
not footprints. Grounded in the community PCBScale tool.
Args:
ratio: Scale factor (> 0). 0.95 shrinks 5%, 1.05 grows 5%.
anchor: selection_center (default), board_center, or
origin.
Returns: {"scaled", "skipped", "ratio", "anchor_x", "anchor_y"} or an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ratio | Yes | ||
| anchor | No | selection_center |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||