GerbMerge 1.9.4 (a command-line tool to merge multiple RS-274X Gerber files) - Page 1
Forum section: electronics / general

author: Oleg Artamonov
author_rank: Contributor
timestamp: January 31, 2016, 01:07:09 pm
content: Hello everyoneTL;DR: I've updated GerbMerge to work properly with Linux/Windows/Cygwin, and to support both inches and millimeters. It is here:https://github.com/unwireddevices/gerbmergeSome weeks ago we needed to order a lot of PCBs for a single project — let's say it's a kind of DIY / rapid prototyping kit with ~30 extension boards. To save some money, I decided to combine all PCBs into two large sheets; of course, PCB manufacturer can do it for me, but I like the idea "if you want something done , do it yourself", moreover, I needed different number of different PCBs, etc. Easier to do it myself than to explain it to PCB fab.So I looked for some tool that can help me and found... nothing... $699... "call us to get a quote"... $1899... GerbMerge! GerbMerge is a python script, GPL, totally free to use and modify, created specifically for this job — merging a lot of gerbers and drill files into a single set.Unfortunately, it didn't work. GerbMerge seemed to be maintained by different — unrelated — people with years-long unmantained periods, so the most recent version: a) doesn't install, b) doesn't work with metric units; c) doesn't work with Cygwin... there're some patches to fix some errors, but they are made by different people, do not aligned with each other... some of them doesn't even work.So I had no choice but to fix it.Here is the result:https://github.com/unwireddevices/gerbmergeAs of version 1.9.4, GerbMerge was tested with both Eagle and DipTrace (btw, in my opinion, much better than Eagle, has free non-commercial version as well, cheaper commercial versions, etc), both inches and millimeters, both Linux and Windows (both native and Cygwin). Installation is semi-automated with pip - details in the README.Just wanted everyone to know.P.S.Proofpic.

author: djsb
author_rank: Super Contributor
timestamp: January 31, 2016, 01:40:16 pm
content: Thanks for putting in the effort to work on this. I tried Gerbmerge a couple of years ago and it was VERY slow. I will give this a try on Windows with some of my designs and report back (eventually).

author: Oleg Artamonov
author_rank: Contributor
timestamp: January 31, 2016, 01:53:59 pm
content: Quote from: djsb on January 31, 2016, 01:40:16 pmThe board on the proofpic was generated in something like 15 minutes on low-end AMD Sempron (CentOS Linux, python 2.6) — I started it and went away to get some coffee. On Core i* pretty good results should be ready in a few minutes (unfortunately, there's no way to tell how good the result already is without stopping the script and checking its output with Gerber viewer).

author: Cenkron
author_rank: Newbie
timestamp: April 24, 2016, 07:28:53 pm
content: I am gratified to find this as I need to make a large number of very small boards, well below the usual minimum size.Unfortunately, I have little familiarity with Python, and I can't figure out how to build it. In the section about native Windows, the first linec:\python27\python.exe setyp.py sdistI didn't find the command setyp.py, and I suspect it is mistyped.Also, I have no idea what sdist parameter represents, and where the CD should be to issue this command (i.e., what "navigate to its folder, and run", means). Who is "it".The second line,c:\python27\scripts\pip.exe istall dist\gerbmerge-1.9.4.zipit looks like "install" is misspelled, and it looks like it is taking a TAR file as a parameter to create a batch file. How will this give me a command to execute?None of this makes sense to me since I am more into the boards than the trickiness here.Can anyone tell me how to install this so I can try it?Cenkron

author: [PTM]
author_rank: Newbie
timestamp: May 06, 2016, 09:01:50 am
content: not support metric.tool list is empty.smalest tool =999.9but with options no-trim-excellion list is not empty. why dont work?

author: garrettbrainard
author_rank: Newbie
timestamp: March 01, 2017, 10:32:43 pm
content: Hey Oleg, I'm currently trying out your version of GerbMerge and I'm running into some strange issues and I'm wondering if they are related to my gerbers being exported from CircuitStudio. The big one for me is that when merging it appears to add some random drills to places where drills shouldn't exist. Others were more minor for example like the cutlines were not appearing on the layers defined and fiducials wouldn't appear at all. Thank you for all the work you committed to this project by the way.P.S. I'm new to the form and if posing questions like this here is inappropriate then I apologize.