Olimex advice - adjusting drill sizes
Update: 18th June 2009
I don't think I can recommend olimex any longer. Please see the main page for more information.
Here's a procedure you can use for adjusting your drill sizes in an existing
design done using 'Eagle' - I use it to make the drills 0.1mm bigger as
Olimex require the drill sizes you give to be before plating, whereas the
standard Eagle libraries give the sizes required after plating.
- Open eagle and load your design
- Go to the schematic view (important: this won't work if you do it from
the board view)
- Select 'File' -> 'Run'
- Select the 'exp-project-lbr.ulp' from c:\Program Files\EAGLE-4.15\ulp\.
- Click 'open'
- Ensure 'multiple libraries' is selected
- Click 'Collect data' (takes a little while to run)
- When 'Collect finish' appears, you will have a
in c:\Program Files\EAGLE-4.15\ulp\project\<your-project>.
- The file contains a script to recreate the eagle libraries - included a
lot of lines that look like 'Change Drill 1016.000000;' - this means a 10mm
drill, and you can now go through this file and change the drills.
I use a perl script:
if (/^Change Drill (.*);/)
my $origdrill = $1;
$drill = int(($origdrill + 50)/100)*100 + 100;
# special case - use 3.3mm where we'd use a 3.4mm
$drill = 3300 if ($drill == 3400);
$drill = "$drill.000000";
# print STDERR "Drill $origdrill $drill\n";
The above script will output a file with the drill sizes all changes to
be 0.1mm bigger, except for any 3.3mm drills which will be left alone.
- Now go back to eagle select 'File' -> 'Script', select the script file
you just changed and click 'Open'
- The script will now create new lbr files using your new drill sizes.
- Now go to the Eagle control panel
- Select 'Options' -> 'Directories'
- Change the 'Libraries' directory to be your project directory, which is
where the new .lbr files have been created.
- Go to the board view
- Select 'Library' -> 'Update all'.
- After a short delay, you should get a message advising you that the
board has changed and you should rerun the DRC.
- Rerun the DRC and check your board.
[Olimex advice home]
Joseph Heenan, email@example.com