Skip to content

saewave/GerberMerge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GerberMerge

Requirements:

NodeJS - 0.6 or above
Npm - not so old :)

How to Install:

  • Clone GerberMerge or download zip and unpack
  • Navigate to GerberMerge dir
  • Run npm install

How to use:

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.

Available options:

  • --in String - define input files or dirs to process (alternate path related to --dir option);
  • --dir String, default = gerber_files - set base dir;
  • --clone Numeric, default = 1 - define how much time current board layer will be cloned;
  • --dx Numeric, default = 0 - define offset by X for cloned board layer;
  • --dy see above
  • --sx Numeric, default = 0 - move start pos by X for board layer;
  • --sy see above
  • --units String, default = in - define units for dx, dy. Now used for compare with units in file and show warning. Available values in and mm;
  • --postfix String, default = _merged - define postfix which will be added to generated file.
  • --prefix String, default = Merged - define prefix which will be added to merged files.
  • --skip-ext-check Boolean, skip extension filter.
  • --zero String, trim zeros from start or end of coordinates
  • --places Numbers, one or two digits wich define integral/fractional part of coordinates
  • --init-coords Boolean, default = false - if set then each block will be prepended of MOVIE command if needed
  • --ini-section String, define ini section from GerberMerge.ini file with config
  • --merge Boolean, 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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published