Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Home

gralfca

Welcome !

Drl2g is a tool written in Java for converting Drl files used in the fabrication of PCB. It converts drl files as generated by design tools such as Kicad into gcode that can be executed by emc2.

It also optimizes the path that the machine uses to drill the holes. The included heuristic is the minimum Euclidean distance between points. That is, the next hole to be drilled is the closest one to the present position. This heuristic generally generates efficient paths.
The following image shows the output for this algorithm as read by linuxcnc.

command line: "java -jar drl2g.jar -input example.drl -ouput_prefix mindistance2"

mindistance

Drl2g can also use the LKH Lin-Kernighan heuristic, if LKH is installed in the filesystem by specifying the command line parameters -alg LKH -with-lkh /path_to_lkh/LKH ( -with-lkh /path_to_lkh/LKH is optional and defaults to /usr/bin/LKH). This is algorithm yields very good results.

The following image shows the output for this algorithm as read by linuxcnc.

command line: "java -jar drl2g.jar -alg LKH --with-lkh /usr/local/bin/LKH -input example.drl -ouput_prefix lkh2"

lkh

The original path can be preserved by specifying -alg Transparent in the command line parameters. The following image shows the output for this algorithm as read by linuxcnc.

command line: "java -jar drl2g.jar -alg Transparent -input example.drl -ouput_prefix transparent"

mindistance

This program is released under the LGPL license.

You can run the program from command line as:

java -jar drl2g.jar -input drill_file.drl -ouput_prefix optimized_output

It will generate optimized_output_X.ngc files. One for each tool.

Project Admins: