Parcourir la source

- fixed some minor errors in the new TclCommands: MillDrills and MillSlots

Marius Stanciu il y a 6 ans
Parent
commit
90a8b44cdf
3 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 1 0
      FlatCAMApp.py
  2. 1 1
      tclCommands/TclCommandMillDrills.py
  3. 1 1
      tclCommands/TclCommandMillSlots.py

+ 1 - 0
FlatCAMApp.py

@@ -1858,6 +1858,7 @@ class App(QtCore.QObject):
                                   'endz', 'extracut', 'factor', 'False', 'false', 'feedrate', 'feedrate_rapid',
                                   'filename', 'follow', 'gaps', 'gapsize', 'grid', 'gridoffset', 'gridoffsetx',
                                   'gridoffsety', 'gridx', 'gridy', 'has_offset', 'holes', 'margin', 'method',
+                                  'milled_dias',
                                   'minoffset', 'multidepth', 'name', 'offset', 'opt_type', 'order', 'outname',
                                   'overlap', 'passes', 'postamble', 'ppname_e', 'ppname_g', 'preamble', 'radius', 'ref',
                                   'rest', 'rows', 'scale_factor', 'spacing_columns', 'spacing_rows', 'spindlespeed',

+ 1 - 1
tclCommands/TclCommandMillDrills.py

@@ -68,7 +68,7 @@ class TclCommandMillDrills(TclCommandSignaled):
 
         try:
             if 'milled_dias' in args and args['milled_dias'] != 'all':
-                diameters = [x.strip() for x in args['tools'].split(",")]
+                diameters = [x.strip() for x in args['milled_dias'].split(",")]
                 req_tools = []
                 for tool in obj.tools:
                     for req_dia in diameters:

+ 1 - 1
tclCommands/TclCommandMillSlots.py

@@ -68,7 +68,7 @@ class TclCommandMillSlots(TclCommandSignaled):
 
         try:
             if 'milled_dias' in args and args['milled_dias'] != 'all':
-                diameters = [x.strip() for x in args['tools'].split(",")]
+                diameters = [x.strip() for x in args['milled_dias'].split(",")]
                 req_tools = []
                 for tool in obj.tools:
                     for req_dia in diameters: