kicad-developers team mailing list archive
Mailing list archive
OT: Extracting board dimension from a Gerber board outline file.
I need to produce a small application that can examine the contents of a board outline gerber file produced by PCBNEW.
The application needs to read the gerber file and extract the X and Y co-ordinates and spit out the actual board size.
Is it possible to extract a board size from the following Gerber file syntax for example?
G04 (created by PCBNEW-RS274X (2011-07-08 BZR 3044)-stable) date 01/11/2011 11:39:11*
G04 Gerber Fmt 3.4, Leading zero omitted, Abs format*
G04 APERTURE LIST*
G04 APERTURE END LIST*
Which lines describe the actual top-left,top-right, bottom-left and bottom-right X and Y co-ordinates. All I need to end up with is a set of numbers from which I can calculate the actual length and width of a PCB (in inches (MILS) or mm). Can someone point me in the right direction? I would be very grateful for any assistance offered.Thanks.