remove_dangling_tracks
Remove dangling track segments with unconnected endpoints in KiCad PCB files. Iteratively clean up traces until no unconnected segments remain.
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
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pcb_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tracks_removed | Yes | ||
| iterations | Yes |