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 availble 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 progress update during
The ability to gracefully interrupt
The error reporting scheme needs to be refined. At the moment, if the Gerber load fails, the error message points you to a directory containing all the necessary files that will help us understand the problem. In the future, the error message string itself will provide a summary of what went wrong.
The QisGerber extension requires a license for product ID 2756. The license is checked-out only for the duration of database creation.