Cloned from http://dxf2gcode.googlecode.com/svn/trunk/