Drill to Gerber Web Page Logo

Running drl2gbr command line on Windows

drill2gbr.exe can also run from the command line for batch processing. It is necessary to have determined the parameters of both the drill file and target Gerber file ahead of time in order to get the expected results.

You will need to know parameters such as Gerber and drill units, gerber and drill format, zero inclusion/suppression, drill sizes, etc. After the conversion, we recommend loading the resulting Gerber file together with one of the other layers and make sure they are aligned. If not, you will probably need to change one or more of the settings on the command line.



Drill2gbr.exe Command Line

Here are the options available on the drill2gbr.exe command line:

drill2gbr.exe -h

Drill To Gerber Version 1.08 (RCS 1.77) 07/18/2007
(C) 2002-2007 Artwork Conversion Software, Inc.

dril2gbr [input_file(s)] [options]


options

   -list:list_file              Get list of input files from list_file.
   -scan:scan_file              Create a scan file with general information
                                of drill file(s).
   -out:output_file             Specify output file to generate.
   -startdcode:dcode_value      Specify starting dcode to use in dcode
                                assignments of tool numbers in scan file.
   -map:map_file                Specify map file to read for obtaining user
                                mapped dcodes and diameters to tool numbers.
   -drlunits:units              Specify inch or mm for drill file(s).
   -gbrunits:units              Specify inch or mm for Gerber file(s).
   -drlformat:format_spec       Specify format for drill file(s).
   -gbrformat:format_spec       Specify format for Gerber file(s).
   -drlzeroinc:zero_mode        Specify zero include mode (leading, trailing,
                                or decimal) for drill file(s)
   -gbrzerosup:zero_mode        Specify zero suppression mode (leading,
                                trailing, or decimal) for Gerber file(s)
   -drlxymode:xy_mode           Specify mode of xy coordinates (absolute or
                                incremental) for drill file(s)
   -gbrxymode:xy_mode           Specify mode of xy coordinates (absolute or
                                incremental) for Gerber file(s)
   -apttype:ATYPE,APARMS        ATYPE can be one of C,O,P,or R.  APARMS can
                                be any RS274X ADD parameter delimited by a ','.
   -offsetx:x_value             Specify x_value by which to offset x coordinates.
   -offsety:y_value             Specify y_value by which to offset y coordinates.
   -silence                     Runs in silent mode.



Drill2gbr.exe Example

c:\wcad\asm500\drl2gbr.exe                              path to executable 
 O06.drl                                                input drill file
  -out:test.gbr                                         output Gerber file
    -startdcode:200                                     starting D-Code for tool mapping                            
       -map:drill_map.txt                               drill map file
          -drlunits:inch                                drill units                                
             -gbrunits:inch                             Gerber units 
                -drlformat:2.3                          drill format (decimal location)
                   -gbrformat:2.3                       Gerber format (decimal location)
                      -drlzeroinc:trailing              drill zero suppression
                         -gbrzerosup:leading            Gerber zero suppression
                            -drlxymode:absolute         drill data mode
                               -gbrxymode:absolute      Gerber data mode