Here is a method for how you can import a Gerber RS-274X file into AutoCAD. There are many commercial software solutions to perform this, but this is how you can do it for free using open source tools!
You'll need to install and configure (if needed) the following software.
- gerbv – this is used to view Gerber files, and can also export to a variety of formats (but not DXF or DWG for AutoCAD)
- pstoedit – converts Postscript files to many different other formats
- ghostscript – needed by pstoedit
Export the Gerber set to PostScript. File -> Export -> Postscript…
Optionally, if you don’t need to visually check the Gerber file in gerbv, gerbv supports exporting via the command line, for example:
gerbv -x ps MYGERBER.GTLNow convert the Postscript (.ps) file to DXF using pstoedit. This is best done on the command line.
pstoedit -f dxf foobar.ps foobar.dxfNow you should have a .dxf file which you can open in AutoCAD.
Caveats
When working with multiple Gerber files and you export them all at once to one .ps file, and convert them to a single .dxf, all the information comes up in AutoCAD as a single layer, but the original layers can be differentiated by their colours.
However you could manually move different colours to new layers if need be (using QSELECT command in AutoCAD). This probably could be scripted, but that’s a bit beyond my means at the moment.
- Comments(18)
D****son
Dec 21.2024, 15:00:56
Great guide on importing Gerber files into AutoCAD! For those who appreciate engaging with detailed tasks, it could be likened to running a successful restaurant in Papa's pizzeria —strategy and precision are key. I appreciate how you highlighted the tools needed. For anyone new to this process, double-checking the layers visually in gerbv first can save a lot of headaches later in AutoCAD. Also, scripting the layer differentiation could be a fun challenge for advanced users!
**
Sep 24.2024, 19:31:48
R****one
Sep 24.2024, 13:07:19
R****one
Sep 24.2024, 12:33:22
R****one
Sep 24.2024, 00:50:46
R****one
Sep 23.2024, 22:45:06
**
Sep 23.2024, 22:41:16
**
Sep 23.2024, 21:42:54
R****one
Sep 23.2024, 20:59:05
R****one
Sep 23.2024, 19:51:29
R****one
Sep 23.2024, 18:17:38
**
May 29.2024, 04:55:19
J****nfo
May 25.2024, 23:13:40
J****ruz
Apr 29.2024, 16:37:05
This process work for multiple layers as well.
M****ton
Apr 11.2024, 14:36:40
B****ake
Dec 18.2023, 12:59:58
B****man
Dec 01.2023, 15:19:22
w****own
Nov 06.2023, 10:15:46