'fileName': fileName, 'layers': smallHoleLayerList, 'components': True, 'depth': depth, 'startZ': startZ, 'safeZ': safeZ, 'overlap': overlap, 'overlapFinish': overlapFinish, 'maxCutDepth': maxCutDepth, 'toolDiam': toolDiam - smallHoleOversize, 'direction': direction, 'coolingPause': smallHoleCoolingPause, 'startDwell': startDwell, } pocket = cnc_dxf.DxfCircPocket(param) prog.add(pocket) param = { 'fileName': fileName, 'layers': bigHoleLayerList, 'components': True, 'depth': depth, 'startZ': startZ, 'safeZ': safeZ, 'overlap': overlap, 'overlapFinish': overlapFinish, 'maxCutDepth': maxCutDepth, 'toolDiam': toolDiam, 'direction': direction, 'startDwell': startDwell,
'1/2_through_hole', ] prog = gcode_cmd.GCodeProg() prog.add(gcode_cmd.GenericStart()) prog.add(gcode_cmd.Space()) prog.add(gcode_cmd.FeedRate(feedrate)) param = { 'fileName': fileName, 'layers': layerList, 'depth': depth, 'startZ': startZ, 'safeZ': safeZ, 'overlap': overlap, 'overlapFinish': overlapFinish, 'toolDiam': toolDiam, 'direction': direction, 'maxCutDepth': maxCutDepth, 'startDwell': startDwell, } boundary = cnc_dxf.DxfCircPocket(param) prog.add(boundary) prog.add(gcode_cmd.Space()) prog.add(gcode_cmd.End(), comment=True) baseName, dummy = os.path.splitext(__file__) fileName = '{0}.ngc'.format(baseName) print('generating: {0}'.format(fileName)) prog.write(fileName)