r/PCB • u/Ok-Active-5647 • 13h ago
Made a small KiCad 10 plugin that fixes track ends sticking out of pads
Not sure if this bugs anyone else, but when I route a fat power track into a smaller SMD pad, the round end of the track pokes out past the pad. DRC usually doesn't complain, but it looks bad, and I kept fixing them by hand, dragging each end back until the arc lined up with the pad edge.
So I wrote a plugin for it. You press the button and it pulls back the end of every track that ends in a pad, just enough that the round end stays inside. It works out how much from the track width, so it doesn't matter how wide the track is or what shape the pad is. If you select some tracks or a footprint it only touches those, otherwise it does the whole board. It's one undo step and it leaves the tracks it changed selected so you can check them.
It won't touch locked tracks, arcs, vias in pads, or ends that another track needs to stay connected.
It's KiCad 10 only since it uses the new IPC API, so you have to turn on Preferences > Plugins > Enable KiCad API. The zip is in the repo, install it with Plugin and Content Manager > Install from File.
————————
https://github.com/CMG-CesarMendoza/Rebaba-Zero-KiCad
("rebaba" is Spanish for burr, btw)
First version, so try it on a copy of your board first. If it does something weird, there's a rebaba_zero.log next to the plugin files, send it my way and I'll take a look.
