No frills gerber to gcode converter.
Switch branches/tags
Nothing to show
Clone or download
Latest commit dec3bf1 Jun 13, 2018
Failed to load latest commit information.
doc md links Mar 2, 2018
example bug fix Feb 14, 2018
img documentation Mar 2, 2018
scripts renaming Jan 3, 2015
src rev version Jun 13, 2018
tests adding gerber test files Feb 7, 2018
.gitignore simple script to handle excellon drill files. Jan 3, 2015
GPLv3.txt first commit May 20, 2013 documentation link in README Mar 2, 2018
gbl2ngc.ini took out printing and minor cleanup Jun 13, 2018


Open source no frills Gerber to gcode converter, using (a slightly modified) Clipper Lib. Produces an isolation routing gcode file for the given Gerber file.

gbl2ngc will convert a Gerber file like this:

Gerber example

to a gcode file like this:

gcode example

to compile:

cd src

example usage:

gbl2ngc --input example/example.gbl --radius 0.0025 --output example.ngc

Current version is in an alpha state, so use at your own risk.

command line options

$ ./gbl2ngc -h

gbl2ngc: A gerber to gcode converter
Version 0.7.0
  -r, --radius radius                 radius (default 0)
  -F, --fillradius fillradius         radius to be used for fill pattern (default to radius above)
  -i, --input input                   input file
  -o, --output output                 output file (default stdout)
  -f, --feed feed                     feed rate (default 10)
  -s, --seek seek                     seek rate (default 100)
  -z, --zsafe zsafe                   z safe height (default 0.1 inches)
  -Z, --zcut zcut                     z cut height (default -0.05 inches)
  -M, --metric                        units in metric
  -I, --inches                        units in inches (default)
  -C, --no-comment                    do not show comments
  -R, --machine-readable              machine readable (uppercase, no spaces in gcode)
  -H, --horizontal                    route out blank areas with a horizontal scan line technique
  -V, --vertical                      route out blank areas with a vertical scan line technique
  -G, --zengarden                     route out blank areas with a 'zen garden' technique
  -P, --print-polygon                 print polygon regions only (for debugging)
  --invertfill                        invert the fill pattern (experimental)
  --simple-infill                     infill copper polygons with pattern (currently only -H and -V supported)
  --no-outline                        do not route out outline when doing infill
  -v, --verbose                       verbose
  -N, --version                       display version information
  -h, --help                          help (this screen)

See the documentation for a more detailed description of each of the options.