logo
navigationGo.pngQuick Navigation
allprojects32.pngAll projects
hardware32.pngHardware
links32.pngLinks

favoriteStar32.pngTop projects
Alan numitron clock
Clapclap 2313/1386
SNES Pi Webserver
USB Volume/USB toys
Smokey amp
Laser cutter
WordClock
ardReveil v3
SNES Arcade cabinet
Game boy projects
cameleon
Home Presence Detector

github32.pngGitHub
AlanFromJapan

navigationMail.pngContact me

alanfjmail.png
3flags.pngWho's Alan?


Akizukidenshi
Elec-lab
Rand Nerd Tut
EEVblog
SpritesMods
Switch-science
Sparkfun
Suzusho
Datasheet Lib
Reddit Elec
Ermicro
Carnet du maker (fr)
Marutsu
ATmel blog (defunct)

eagle grid wiring fixer

Presentation

Principle

A small python 2.x program that takes in an Eagle .BRD file and does some matching of the wires and air wires.
Because sometimes your grid and parts don't perfectly line up (shoot me, I use the metric system) you end up with trace the should match the airwires, but don't. And there's no real easy way to fix that. So I made a script that works reasonably well.
Notice: do make a backup of your .brd before you run the script, in case.

Points of interrest

Logic is the following: for each wire not already connected to a pad, the program searches for a matching airwire. "Matching" is defined by finding an airwire whose start and end matching distance withing a given margin of error (delta). Once it finds it, it merges both wires by replacing the content of the airwire with the wire segments and removing the airwire data (layer 19).

Possible improvements:
  • Now the matching doesn't take in account the layers of the airwire pads and the candidate wire. Possibly it could mismatch if 2 SMD components pads are perfectly above one each-other on 2 side of the board.
  • It doesn't match multi-pads wires (like a VCC wire or GND one running through the board).
  • Implementation

    Source code

    GitHub as usual https://github.com/AlanFromJapan/alanarduinotools/tree/master/Python/EagleGridWiringFixer

    Pictures


    Before: a spaghetti plate of yellow airwires

    After: 89% matched, much much easier to continue working now :)

    Links

    Helpful sources

    Inspiration

    All content on this site is shared under the MIT licence (do what u want, don't sue me, hat tip appreciated)
    electrogeek.cc ~ Formerly known as Kalshagar.wikispaces.com (AlanFromJapan [2009 - 2017])