Python script to flip drill file coords for Winboard

After getting my first order back, I discovered that by default, Winboard mirrors gerber output over the x-axis. I didn’t think there was a problen when using ViewMate as I figured that “looking up through the board from the bottom” was okay. At least it was a cheap mistake…

I can set Winboard to mirror the gerber file outputs so they generate corrected views (top down view), but there are no adjustments that can be made to the drill files. So I wrote a small Python script which takes a couple of additional gerber files containing through-hole pads and uses that to fix the coordinates in the drill file. It also does some other housekeeping to put coordinates and drill tool definitions into a format that the SFE tools can read easily.

If anyone else is interested in this little utility, let me know and I can clean it up and make it available (currently only works with 2.3 formats, hardcoded filenames for my use, etc). It may even make a good starting point for editing drill files from other packages and getting them into a SFE-friendly format.

CraigT