NodeJS - 0.6 or above
Npm - not so old :)
- Clone
GerberMergeor download zip and unpack - Navigate to
GerberMergedir - Run
npm install
Before use GerberMerge you need to prepage Gerbers. Current version of GerberMerge accept RS274X only. Put your gerbers to default directory named gerber_files (otherwize you need to use --dir param to setup a default gerber dir). You can create subdir inside gerber_files or place files directly.
Other main requrement - your gerber files should contain next extensions: .gbl, .gbo, .gbs, .gml, .gtl, .gto, .gtp, .txt (according to SparkFun’s CAM file for Eagle cad). Other files will be ignored. If you want to skip this filter and process all files use --skip-ext-check.
--inString - define input files or dirs to process (alternate path related to--diroption);--dirString, default =gerber_files- set base dir;--cloneNumeric, default = 1 - define how much time current board layer will be cloned;--dxNumeric, default = 0 - define offset byXfor cloned board layer;--dysee above--sxNumeric, default = 0 - move start pos byXfor board layer;--sysee above--unitsString, default = in - define units for dx, dy. Now used for compare with units in file and show warning. Available valuesinandmm;--postfixString, default =_merged- define postfix which will be added to generated file.--prefixString, default =Merged- define prefix which will be added to merged files.--skip-ext-checkBoolean, skip extension filter.--zeroString, trim zeros from start or end of coordinates--placesNumbers, one or two digits wich define integral/fractional part of coordinates--init-coordsBoolean, default = false - if set then each block will be prepended of MOVIE command if needed--ini-sectionString, define ini section from GerberMerge.ini file with config--mergeBoolean, try to merge files
Examples: next command:
node GerberMerge.js --in "Hub USB 2.0" --dy 1.289765
will process all files inside /gerber_fiels/Hub USB 2.0, clone each one one time and shift cloned layer to 1.289765 inch by Y.
node GerberMerge.js --in "Hub USB 2.0/Hub USB 2.0.GTL" --clone 2 --dy .72
process only one file: /gerber_fiels/Hub USB 2.0/Hub USB 2.0.GTL, clone it twice and shift each layer to 0.72 in by Y
node GerberMerge.js --in "Hub USB 2.0" --in "Switch-1.5v-MFU" --clone 1 --init-coords --zero L --places 2,5 --sx 2.7 --sx 0 --dy .74 -m
Merge all files from "Hub USB 2.0" and "Switch-1.5v-MFU" folders, clone each one time, check init coordinates, set zero to L, places to 2 and 5, move all files in "Hub USB 2.0" to 2.7 in by X axis, do not shift "Switch-1.5v-MFU" and shift each board to 0.74 in by Y axis.