Eagle 3D PCBs with Alibre: Extruding the PCB
Extruding the PCB – Overview
The first step to a complete 3D PCB model is to create the PCB.Â The basic approach is to export a DXF outline of the PCB and its holes from Eagle PCB, import it into Alibre, and then extrude it.Â It’s not as easy as it sounds.
Alibre Design refuses to extrude sketches with any overlap.Â AD V11 did not show where the errors are, but V12 does (this feature alone makes V12 worth the upgrade).
If your PCB border has a non-zero width, Alibre will not extrude the PCB because the four corners overlap.Â For some reason, Alibre Design does not accept the way the standard Eagle DXF script creates holes.
I did not have any success getting Alibre Design to extrude the silkscreen or trace layers, nor was I able to overlay the silkscreen or traces as a visible sketch on top the extruded PCB (maybe because Alibre Design does not support surfacing).
When extruding, CoCreate PE is about as picky as Alibre, but (like AD V12) it highlights what it doesn’t like.Â SolidWorks doesn’t have problems extruding the standard Eagle DXF output.Â VX Innovator is also less picky; I have successfully extruded the silkscreen layer.
I made a couple quick and dirty changes to the standard Eagle DXF creation ULP to fix the holes; the result is dxf-fsw.ulp.
Creating the PCB — Step By Step
- Open your project in Eagle, then open the Eagle Board editor with your PCB layout.Â I used the FP-SMC-1 project as an example; you can download the files here.
- Make sure your borders have a width of 0.
- In the Eagle PCB board editor, turn on onlyÂ the dimension, via, and pad layers (layers 17, 18, and 20).
- In the Eagle PCB Board editor, run the dxf-fsw.ulp ULP.
- Select a file name for Output file; I used FP-SMC-1.dxf with the appropriate path for my Eagle PCB setup.
- The Always vector font, Use wire widths, and Fill areas setting should not matter.
- The units do matter: you need to know them when you import the DXF.Â I used inches.
- Then run the script by pressing OK.
- You can download my resulting file here FP-SMC-1.dxf
- Close Eagle PCB.
- Start Alibre Design.
- Select the File->Import menu, select AutoCAD DXF files for the file type, select the file (in my case, FP-SMC-1.dxf), and press Open.
- File Units need to match the units you used when creating the DXF in Eagle (I used inches).
- I don’t think Maintain Projection matters.
- Importing Only Visible Layers makes sense.
- Start importing by pressing OK.
- Select the Sketch->Activate 2D Sketch menuÂ (or press Ctrl+K).
- Select the Edit->Select All menu (or press Ctrl+A)
- Select the Edit->Copy menu (or press Ctrl+C)
- In the Alibre Home window select the File->New->Part (or press Ctrl+Shift+T)
- Select the Sketch->Activate Sketch menu (or press Ctrl+K)
- Select the plane to use for your new sketch.
- You can name the sketch.Â It’s not a big deal in a simple part, but I would recommend named sketches in a complex part.
- I used the XY plane.Â You can select the plane by either clicking on the plan in the work area, or clicking on the list of planes in the tree on the left (e.g. Planes->XY Plane).
- Select the Edit->Paste menu (or press Ctrl+V) to paste the DXF drawing into the sketch.
- You could select and move the sketch around if desired.
- Select the Sketch->Activate Sketch menu (or press Ctrl+K) to deactivate the sketch mode.
- Select Extrude Boss by menu (Feature->Boss->Extrude) or icon (typically the top right icon).
- Verify the correct sketch is selected.
- Use To Depth for Type.
- Use your PCB thickness for depth (0.062″ or 1/16″ for me).
- I reversed the extrude so the sketch is on top (probably doesn’t matter a lot).
- Leave everything else with the default settings, except you may want to name the extrusion.
- Start the extrusion by pressing OK.
- Save the PCB using the File->Save As menu (Ctrl+Shift+S); mine is available as FP-SMC-1 PCB.AD_PRT
- We are done creating the PCB itself.Â Now we have to assemble the board inside of Alibre, so stay tuned.
Here is the FP-SMC-1 PCB as an Acrobat 3D PDF; if a correct version of Acrobat is installed, you can click on the PCB, and then rotate it and more.