add_track
Adds a straight copper track segment to a PCB layout between two specified coordinates. Use for routing traces or connecting points; set width, layer, and net as needed.
Instructions
Add a straight copper track segment. Prefer route_pads (connect pads by name) or add_track_path (multi-segment) - they avoid hand-copied coordinates.
Args: start_x_mm, start_y_mm: Start point in mm. end_x_mm, end_y_mm: End point in mm. width_mm: Track width in mm; default is the net's netclass width. layer: Copper layer name, e.g. 'F.Cu' or 'B.Cu'. net_name: Net to assign (must exist on the board).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | F.Cu | |
| end_x_mm | Yes | ||
| end_y_mm | Yes | ||
| net_name | No | ||
| width_mm | No | ||
| start_x_mm | Yes | ||
| start_y_mm | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||