set_trace_width
Modify the width of PCB traces that match specified net, layer, or bounding-box filters, entering the new width in millimeters.
Instructions
Change the width of existing traces matching the given filters. At least one filter (net_name, layer, or bounding box) is required.
Args:
width: New trace width in mm
net_name: Filter by net name
layer: Filter by layer name (e.g. "F.Cu", "B.Cu")
x_min: Left edge of bounding box filter (mm)
y_min: Top edge of bounding box filter (mm)
x_max: Right edge of bounding box filter (mm)
y_max: Bottom edge of bounding box filter (mm)
pcb_path: Path to .kicad_pcb file. Optional; omit to use the configured default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | ||
| width | Yes | ||
| x_max | No | ||
| x_min | No | ||
| y_max | No | ||
| y_min | No | ||
| net_name | No | ||
| pcb_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| net | Yes | ||
| new_width_mm | Yes | ||
| traces_modified | Yes |