- modified the Tools Database and Preferences with the new parameters from CutOut Tool

- changes in Tool Cutout: now on Cutout Tool start the app will look into Tools Database and search for a tool with same diameter (or within the set tolerance) as the one from Preferences and load it if found or load a default tool if not
- Tool Cutout - this Tool can now load tools from Tools Database through buttons in the Cutout Tool
This commit is contained in:
Marius Stanciu
2020-08-28 18:52:05 +03:00
committed by Marius
parent fc539fa55b
commit 6c9c367540
10 changed files with 714 additions and 260 deletions

View File

@@ -73,22 +73,22 @@ class TclCommandCutout(TclCommand):
if 'margin' in args:
margin_par = float(args['margin'])
else:
margin_par = float(self.app.defaults["tools_cutoutmargin"])
margin_par = float(self.app.defaults["tools_cutout_margin"])
if 'dia' in args:
dia_par = float(args['dia'])
else:
dia_par = float(self.app.defaults["tools_cutouttooldia"])
dia_par = float(self.app.defaults["tools_cutout_tooldia"])
if 'gaps' in args:
gaps_par = args['gaps']
else:
gaps_par = str(self.app.defaults["tools_gaps_ff"])
gaps_par = str(self.app.defaults["tools_cutout_gaps_ff"])
if 'gapsize' in args:
gapsize_par = float(args['gapsize'])
else:
gapsize_par = float(self.app.defaults["tools_cutoutgapsize"])
gapsize_par = float(self.app.defaults["tools_cutout_gapsize"])
if 'outname' in args:
outname = args['outname']