route_pads
Route a PCB track between two named pads, automatically using the net's width and reporting clearance conflicts with other nets.
Instructions
Route a track between two pads by name - no coordinates needed.
Looks up both pads, takes the net from them, uses the netclass track width unless overridden, draws a 45-degree (or orthogonal) path, and then reports clearance conflicts with other nets. A power track wider than a fine-pitch pad is necked down where it leaves the pad (see 'necks' in the result).
Args: from_reference, from_pad: Start pad, e.g. 'U2', '7'. to_reference, to_pad: End pad, e.g. 'J3', '1'. layer: Copper layer. Empty = a layer both pads share (F.Cu preferred). width_mm: Track width; default is the net's netclass width. style: '45' (default), 'manhattan' (90-degree), or 'direct' (straight line). bend: 'straight_first' or 'diagonal_first' - which end gets the bend. via_at: [x_mm, y_mm] to change layer through a via on the way. Required when the pads have no copper layer in common (e.g. one SMD on each side); if omitted in that case the via goes at the midpoint. to_layer: Layer after the via (default: the other outer layer). rollback_on_conflict: Undo the whole route if any clearance problem is found. neck_down: Where the full width would hit the part's other pins, run the stretch next to the pad at the widest width that fits (at most the pad's size) and widen once clear.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bend | No | straight_first | |
| layer | No | ||
| style | No | 45 | |
| to_pad | Yes | ||
| via_at | No | ||
| from_pad | Yes | ||
| to_layer | No | ||
| width_mm | No | ||
| neck_down | No | ||
| to_reference | Yes | ||
| from_reference | Yes | ||
| rollback_on_conflict | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||