Solidworks Pcb Open Gerber Files

Importing into SolidWorks

TrainingOpen

Shows how to use NETEX-G and Read3Di to convert Gerber files for a PCB into a 3D model in SolidWorks. Working with circuit boards/gerber files I have designed a custom circuit board that I now want to model a case for, is there a way I can import the gerber files into Fusion to work with? Will Fusion create a model based on those files.

Solidworks Pcb Open Gerber Files

So, let's import this into SolidWorks and see what we get. What would we like to get? Something like a multi-layer sandwidth: Each Gerber conductor layer on its own Z-level in SolidWorks with a given thickness. Between each conductor layer a solid body representing the FR4. Drill holes running through the entire assembly like toothpicks holding the whole thing together.

Importing

We are going to import into a SolidWorks part. We will start by just importing the top layer. We import it as a new part and the data as a 2D Sketch. here is what it looks like as it first comes in:

  • SOLIDWORKS, coupled with today’s high-powered workstations, give users the capability of modeling and including every nut, bolt, and washer required. The introduction of SOLIDWORKS Electrical in 2013 and SOLIDWORKS PCB in 2016, we now have tools to work with the electrical portion of our designs. This means we are bringing in circuit boards.
  • SOLIDWORKS, coupled with today’s high-powered workstations, give users the capability of modeling and including every nut, bolt, and washer required. The introduction of SOLIDWORKS Electrical in 2013 and SOLIDWORKS PCB.

Oct 24, 2017 The Gerber files should be created with the same format, or precision, as the NC Drill files. For example, if the Gerber files have been configured to use the 2:4 format, then the corresponding NC Drill files should use the same format. If Gerber files have been generated with the coordinate position on the film set to use either the absolute.

Solidworks Pcb Open Gerber Files Online

You can see that our circuit traces have lost their width but the solids for the square pads are OK. To convert this to a part, we have to selected the closed regions (i.e. the pads) and extrude them along Z. The actual thickness is about 0.0014 inch (assuming 1 oz.copper) but we will use 0.004 inch so that we can actually see something in 3D.

In order to extrude this, I had to first delete the sketch lines for the traces (as they don't form a closed body they can't be there), select the rest of the 2D sketch lines and then use the extude/boss function to extrude by 0.004 inch in the Z direction. I also set the material to copper which gives the data its brownish color.


I can now save this as a 'part' we'll call TOP_LAYER.SLDPRT

So you can see that to import just one layer requires several manual steps and we have yet to be able to import the traces.

Importing Gerber/DXF from PCB into SolidWorks

Open

As the design of PCB's becomes more complex, the need to do 3D modeling of a printed circuit board also becomes more important. Many PCB design tools have an interface to SolidWorks via the IDF file format -- however this approach is useful mostly for components, connectors, board outline and mounting holes. If you need conductor and plated through hole data in 3D, IDF is not a good solution. And, of course, if your PCB layout tool does not support IDF you are out of luck.

AutoCAD DXF?

An initial thought is to use SolidWorks ability to import AutoCAD's DWG/DXF format as a way to move the board data into SolidWorks. For example, it is pretty easy to convert most Gerber files into DXF. However those that have tried this have found it does not work as well as one would hope.

Issues?

    Polylines with width not supported - SolidWorks doesn't read the width of the polyline (this may have changed in recent versions of SW) so if you are using polylines with width in AutoCAD to represent traces you lose them.

    Layers not Supported - most PCBs have multiple layers and you want the conductors on each layer to stay on the layer. If you try to import multiple layers into solidworks you'll find that they all get mushed together.

    Manual Extrusions - You'll have to manually select the lines/arcs and extrude them to get a 'part' in Solidworks. While this is not a problem for a few pieces, a large PCB makes this quite aggravating.

    No Z Data - assuming you have a 'stack' of conductor and dielectric layers, you have to import them one at time and then assemble them. Again, very time consuming.

    Material Properties - it would be nice if you could pass the fact that your conductors are copper and that your board is FR4 (or alumina or whatever material) but these attributes have to be attached manually.


Examples of DXF into SolidWorks

Solidworks Pcb Open Gerber Files Extension

It might be worthwhile to actually demonstrate some of these issues mentioned above. We are going to run two experiments: Gerber to DXF using a standard converter and Gerber to DXF using Artworks GBRUNION. What is the difference?

GBR2DXF

    No special processing
    round pads to circles in DXF
    draws to polylines with width
    no support for negative or paint/scratch layer operations
    supports multiple layers
    no understanding of drill holes
    no understanding of stackup position

GBRUNion

    Unionizes all data into clean boundaries
    can recover arcs and circles
    support for negative or paint/scratch layer operations
    supports multiple layers
    no understanding of drill holes
    no understanding of stackup position

Here is the set of Gerber Files we are going to use for our demo

Solidworks Pcb Open Gerber Files Free


Solidworks Pcb Open Gerber Files Free

The red layer is the top.gbr, the green layer is the bottom.gbr, the blue layer is an inner power/ground (drawn in reverse as is typical for such layers) and the yellow layer represents the drill data which runs all the way through the board. A magenta layer is hardly visible but contains the board outline. You can download the set of Gerber files as solidworks_gerber.zip