This Gerber import library extension to QisMLib is intended enable a user to quickly convert a Gerber file into a layout database without need for external programs or libraries. Once imported, the data can be processed as if it had originated as a GDSII/OASIS layout file.
The underlying algorithms and capabilities are taken from Artwork's GBRUnion program; if you are familiar with GBRUnion then using this API will be very straightforward.
When running the QisMLib installer, you will be prompted to select from the list of extensions. Make sure QisMGerber (at the bottom of the list) is selected.
The plug-in that provides the QisMGerber functionality is
Scripting support is available for the QisMGerber API. In
gerber_to_gds.script -- converts Gerber to GDSII using QisMGerber
clipx_gerber.script -- extract raster bitmaps using QisMGerber and QisMClipExtract
Execute the corresponding .bat files to see them in action.
qm_gerber_to_gds.cpp : application to convert Gerber to gds using QisMGerber
qm_clipx_gerber.cpp application to extract raster bitmaps from Gerber using QisMClipExtract and QisMGerber
Unlike the object-oriented style of the older sample code, these have a procedural style to simplify reading. They also follow the same flow as the corresponding scripts so that you can see a 1-1 correspondence between the script commands and the c++ code.
The QisGerber extension requires a license for product ID 2756. The license is checked-out only for the duration of database creation.