remove_dangling_tracks
Remove unconnected trace segments from PCB layouts, iteratively deleting tracks with endpoints that don't connect to pads, vias, or other traces.
Instructions
Detect and remove trace segments with unconnected endpoints.
Iteratively removes dangling segments until no more are found.
A segment is considered dangling if either endpoint does not connect
to a pad, via, or another trace endpoint.
Args:
pcb_path: Path to .kicad_pcb file. Optional; omit to use the configured default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pcb_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iterations | Yes | ||
| tracks_removed | Yes |