- completed the refactoring of object options property to obj_options in preprocessors too
This commit is contained in:
committed by
Marius Stanciu
parent
1681b327ed
commit
f7f88a34be
@@ -18,15 +18,15 @@ class ISEL_ICP_CNC(PreProc):
|
||||
end_coords_xy = p['xy_end']
|
||||
gcode = '; This preprocessor is used with a ISEL ICP CNC router.\n\n'
|
||||
|
||||
xmin = '%.*f' % (p.coords_decimals, p['options']['xmin'])
|
||||
xmax = '%.*f' % (p.coords_decimals, p['options']['xmax'])
|
||||
ymin = '%.*f' % (p.coords_decimals, p['options']['ymin'])
|
||||
ymax = '%.*f' % (p.coords_decimals, p['options']['ymax'])
|
||||
xmin = '%.*f' % (p.coords_decimals, p['obj_options']['xmin'])
|
||||
xmax = '%.*f' % (p.coords_decimals, p['obj_options']['xmax'])
|
||||
ymin = '%.*f' % (p.coords_decimals, p['obj_options']['ymin'])
|
||||
ymax = '%.*f' % (p.coords_decimals, p['obj_options']['ymax'])
|
||||
|
||||
gcode += 'IMF_PBL flatcam\n\n'
|
||||
|
||||
if str(p['options']['type']) == 'Geometry':
|
||||
gcode += ';TOOL DIAMETER: ' + str(p['options']['tool_dia']) + units + '\n'
|
||||
if str(p['obj_options']['type']) == 'Geometry':
|
||||
gcode += ';TOOL DIAMETER: ' + str(p['obj_options']['tool_dia']) + units + '\n'
|
||||
gcode += ';Feedrate_XY: ' + str(p['feedrate']) + units + '/min' + '\n'
|
||||
gcode += ';Feedrate_Z: ' + str(p['z_feedrate']) + units + '/min' + '\n'
|
||||
gcode += ';Feedrate rapids ' + str(p['feedrate_rapid']) + units + '/min' + '\n' + '\n'
|
||||
@@ -36,7 +36,7 @@ class ISEL_ICP_CNC(PreProc):
|
||||
str(math.ceil(abs(p['z_cut']) / p['z_depthpercut'])) + ' passes' + '\n'
|
||||
gcode += ';Z_Move: ' + str(p['z_move']) + units + '\n'
|
||||
|
||||
elif str(p['options']['type']) == 'Excellon' and p['use_ui'] is True:
|
||||
elif str(p['obj_options']['type']) == 'Excellon' and p['use_ui'] is True:
|
||||
gcode += '\n;TOOLS DIAMETER: \n'
|
||||
for tool, val in p['tools'].items():
|
||||
gcode += ';Tool: %s -> ' % str(tool) + 'Dia: %s' % str(val["tooldia"]) + '\n'
|
||||
@@ -90,7 +90,7 @@ class ISEL_ICP_CNC(PreProc):
|
||||
gcode += '(Steps per circle: ' + str(p['steps_per_circle']) + ')\n'
|
||||
gcode += ';Steps per circle: ' + str(p['steps_per_circle']) + '\n'
|
||||
|
||||
if str(p['options']['type']) == 'Excellon' or str(p['options']['type']) == 'Excellon Geometry':
|
||||
if str(p['obj_options']['type']) == 'Excellon' or str(p['obj_options']['type']) == 'Excellon Geometry':
|
||||
gcode += ';Preprocessor Excellon: ' + str(p['pp_excellon_name']) + '\n' + '\n'
|
||||
else:
|
||||
gcode += ';Preprocessor Geometry: ' + str(p['pp_geometry_name']) + '\n' + '\n'
|
||||
@@ -120,8 +120,8 @@ class ISEL_ICP_CNC(PreProc):
|
||||
|
||||
toolC_formatted = '%.*f' % (p.decimals, p.toolC)
|
||||
|
||||
if str(p['options']['type']) == 'Excellon':
|
||||
for i in p['options']['Tools_in_use']:
|
||||
if str(p['obj_options']['type']) == 'Excellon':
|
||||
for i in p['obj_options']['Tools_in_use']:
|
||||
if i[0] == p.tool:
|
||||
no_drills = i[2]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user