From 97bc45926a96f8f60a6286d5fca201ee8dc6ec7d Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Sun, 7 Jan 2024 03:04:21 +0200 Subject: [PATCH] - Milling Plugin: when an object has a "tools_mill_tooldia" property set as an object option it is used to set the Tool Dia field --- CHANGELOG.md | 10 +++++++--- appPlugins/ToolMilling.py | 5 ++++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 22f87e45..60756fe0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,14 +7,18 @@ CHANGELOG for FlatCAM Evo beta ================================================= +7.01.2024 + +- Milling Plugin: when an object has a "tools_mill_tooldia" property set as an object option it is used to set the Tool Dia field + 6.01.2024 -- NCC Tool: make sure to use the CutZ value set in Preferences NCC Tool section +- NCC Plugin: make sure to use the CutZ value set in Preferences NCC Tool section 5.01.2024 -- Follow Tool: added more parameters: simplification and union -- Follow Tool: the resulting LineString geometries are now merged together to minimize the number of lines +- Follow Plugin: added more parameters: simplification and union +- Follow Plugin: the resulting LineString geometries are now merged together to minimize the number of lines 3.01.2024 diff --git a/appPlugins/ToolMilling.py b/appPlugins/ToolMilling.py index 1f9c5fe4..c3bbb843 100644 --- a/appPlugins/ToolMilling.py +++ b/appPlugins/ToolMilling.py @@ -644,7 +644,10 @@ class ToolMilling(AppTool, Excellon): # #######3 TEMP SETTINGS ################# # ######################################## - self.ui.addtool_entry.set_value(self.app.options["tools_mill_tooldia"]) + try: + self.ui.addtool_entry.set_value(selected_obj.obj_options["tools_mill_tooldia"]) + except AttributeError: + self.ui.addtool_entry.set_value(self.app.options["tools_mill_tooldia"]) self.on_object_changed() if self.target_obj: