From ddc3343487a1ddc81e2d55b8fa6e9e20820c7ea5 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Sun, 14 Mar 2021 13:10:04 +0200 Subject: [PATCH] - small fix in the Toolchange_Manual preprocessor --- CHANGELOG.md | 1 + preprocessors/Toolchange_Manual.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d3edbf0..608e437b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ CHANGELOG for FlatCAM beta - Geometry Editor can now modify the edited tool diameter - upgraded the Drilling Plugin and all the related parts in the CNCJob Object and in all preprocessors. Now, the parent 'tools' attribute is inherited and also the GCode is stored here +- small fix in the Toolchange_Manual preprocessor 13.03.2021 diff --git a/preprocessors/Toolchange_Manual.py b/preprocessors/Toolchange_Manual.py index 13d08da7..c54714b3 100644 --- a/preprocessors/Toolchange_Manual.py +++ b/preprocessors/Toolchange_Manual.py @@ -20,7 +20,7 @@ class Toolchange_Manual(PreProc): coords_xy = p['xy_toolchange'] end_coords_xy = p['xy_end'] gcode = '(This preprocessor has a special sequence when doing a toolchange.)\n' - gcode += '(Compatible with MACH3,)\n\n' + gcode += '(Compatible with MACH3.)\n\n' xmin = '%.*f' % (p.coords_decimals, p['options']['xmin']) xmax = '%.*f' % (p.coords_decimals, p['options']['xmax']) @@ -58,7 +58,7 @@ class Toolchange_Manual(PreProc): gcode += '(Tool: %s -> ' % str(tool) + 'Z_Cut: %s' % str(val['data']["tools_drill_cutz"]) + ')\n' gcode += '\n(Tools Offset: )\n' - for tool, val in p['exc_cnc_tools'].items(): + for tool, val in p['tools'].items(): gcode += '(Tool: %s -> ' % str(tool) + 'Offset Z: %s' % \ str(val['data']["tools_drill_offset"]) + ')\n'