Creating PCBs Automatically from your Eagle .BRD File

To create PCBs using Eagle files, the easiest method is to upload the Eagle .BRD file.  The MacroFab platform will automatically extract the bill of materials, part placement data and the Gerber data from the .BRD file. In the PCB tab, simply drag-and-drop your .BRD file into the file upload target. Alternatively, you can click the Upload Files button on the right side of the screen.

Once the files have been uploaded, you can verify that the files have been correctly identified as an Eagle Board file in the PCB viewer under the PCB Layer Files. Under the PCB Specifications Controls on the right side of theMacroFab platform you can check how many layers your PCB has which is automatically detected by the platform. If you need to upload a different Eagle .BRD or any other files you can do so by using the “Upload Files” button or by dragging more files into the workspace.

Design Rule Checking in Eagle

For best results, it is important to run design rule checks (DRC) in Eagle before submitting your order.  Design Rule Checks ensure that your design is within manufacturing specifications, while also identifying critical, but easy to miss, errors.  To make life easier on you, we’ve prepared a number of design rule files for Eagle, which can be found on our GitHub page. Download the DRU file which corresponds to the number of layers in your board and the manufacturing specifications you are using.

To perform a DRC check, first open your board layout in the Eagle editor, and then choose the DRC icon from the tool tray, or type drc in the Eagle command line. Once the DRC has loaded, you will see the following screen:


Press the Load button, and locate the DRU file you downloaded from our GitHub page. After executing the DRC, a DRC Errors screen will pop up.  If any errors occur, you will need to correct them before submitting your files for production.  If no errors are found, then you are ready to submit your files!

Creating PCBs Manually Using Eagle

If you’d rather not rely on the automatic extraction capabilities of the MacroFab platform, you’re not comfortable sending us your original source files, or if you’d like to make some changes to your data before uploading, you can export the Gerbers and XYRS (combined Placement and Bill of Materials data) file needed for production using the Eagle CAM and ULP files we provide.

Running Eagle CAM Manually

The CAM processor in Eagle generates the Gerber CAM files needed to manufacture the board. To generate the correct files for our process we have prepared CAM jobs that match to the number of layers in your design, and whether you’re using Eagle version 6.x or Eagle version 7.x.  We have provided CAM jobs for 2, 4, 6, and 8 layer designs. For Eagle version 8 use the 7.x versions.

Eagle Versions: Make sure you use the CAM job that matches to your version of Eagle, using a V7 job on Eagle V6, or vice-versa may result in silent failures to your design.

Once you’ve downloaded the correct CAM job file, click on the CAM processor icon in the tool tray.  After the CAM job window opens, click on File and then Open to load the downloaded CAM file.  Loading this file will properly set all Gerber options to work with MacroFab.  After you’ve loaded the CAM job, click Process Job to generate the Gerber files.  The output files will be saved in a subdirectory called “camfiles” inside your Eagle project directory. You may need to create this directory if Eagle can not.

Exporting XYRS (Placement) Data Manually

To export the placement and bill of materials data manually, we have provided a custom ULP script for Eagle to export the required data in the proper format.  After it has been exported, you can open the generated .XYRS file in your favorite spreadsheet tool, as a tab-delimited file, make any changes, re-save it as a tab-delimited file, and then upload it directly to your PCB project. The script looks for two attributes on each part to fill out the Populate and MPN fields. These are optional.

Select the Run ULP… menu option from the File menu and find the MF_Eagle_Placement.ulp script you downloaded. This will generate a .XYRS file in the directory the .BRD file was in.

Manufacturing Part Numbers and the Populate field

The MacroFab platform uses a MPN (Manufacturing Part Number) and a Populate flag to specify additional information to the bill of materials. To set these for parts in Eagle you will have to make sure of the attribute feature of parts. To learn how to do this there is a engineering article in our blog that covers it. The attributes the MacroFab platform looks for are “MPN” and “Populate”. The MPN value can be filled with part number and the Populate value has to be 0 or 1. Do Not Populate is 0 and Populate is 1. Our EDA Libraries for Eagle already have these attributes in them.