- in ParseDXF file fixed import of module due of changes in the latest version of ezdxf module

- changes in Milling Plugin in the selection in the Tools Table
- some updates of milling data structure
- changes in handling the tool shape due of moving the parameter from the tool table in the tool parameters section
This commit is contained in:
Marius Stanciu
2021-07-21 00:46:55 +03:00
committed by Marius
parent d4d2a93c4e
commit 29988a622e
13 changed files with 108 additions and 148 deletions

View File

@@ -199,9 +199,9 @@ class AppGCodeEditor(QtCore.QObject):
# -------------------- TOOL SHAPE ------------------------------------- #
tool_type_item_options = ["C1", "C2", "C3", "C4", "B", "V"]
try:
tool_shape_item_txt = tool_type_item_options[dia_value['data']['tools_mill_shape']]
tool_shape_item_txt = tool_type_item_options[dia_value['data']['tools_mill_tool_shape']]
except TypeError:
tool_shape_item_txt = dia_value['data']['tools_mill_shape']
tool_shape_item_txt = dia_value['data']['tools_mill_tool_shape']
tool_shape_item = QtWidgets.QTableWidgetItem(tool_shape_item_txt)
t_id.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEnabled)