- fixed the TclCommand MillHoles

This commit is contained in:
Marius Stanciu 2019-09-11 07:06:32 +03:00 committed by Marius
parent e7493a350f
commit 4440298327
3 changed files with 6 additions and 3 deletions

View File

@ -2633,8 +2633,10 @@ class FlatCAMExcellon(FlatCAMObj, Excellon):
for tool in tools:
if tooldia > self.tools[tool]["C"]:
self.app.inform.emit('[ERROR_NOTCL] %s' %
_("Milling tool for DRILLS is larger than hole size. Cancelled."))
self.app.inform.emit('[ERROR_NOTCL] %s %s: %s' % (
_("Milling tool for DRILLS is larger than hole size. Cancelled.",
str(tool))
))
return False, "Error: Milling tool is larger than hole."
def geo_init(geo_obj, app_obj):

View File

@ -15,6 +15,7 @@ CAD program, and create G-Code for Isolation routing.
- whenever a Gerber file is deleted, the mark_shapes objects are deleted also
- made faster the Gerber parser for the case of having a not valid geometry when loading a Gerber file without buffering
- updated code in self.on_view_source() to make it more responsive
- fixed the TclCommand MillHoles
10.09.2019

View File

@ -82,7 +82,7 @@ class TclCommandMillHoles(TclCommandSignaled):
del args['name']
# This runs in the background... Is blocking handled?
success, msg = obj.generate_milling(**args)
success, msg = obj.generate_milling_drills(**args)
except Exception as e:
self.raise_tcl_error("Operation failed: %s" % str(e))