- fixed an bug where the pywrapcp name from Google OR-Tools is not defined

This commit is contained in:
Marius Stanciu 2019-09-17 12:47:36 +03:00
parent e786398888
commit 49ac19a221
2 changed files with 272 additions and 265 deletions

View File

@ -15,6 +15,7 @@ CAD program, and create G-Code for Isolation routing.
- fixed issue #315 where a script run with the --shellfile argument crashed the program if it contained a TclCommand New
- added messages in the Splash Screen when running FlatCAM with arguments at startup
- fixed issue #313 where TclCommand drillcncjob is spitting errors in Tcl Shell which should be ignored
- fixed an bug where the pywrapcp name from Google OR-Tools is not defined
16.09.2019

View File

@ -5867,8 +5867,10 @@ class CNCjob(Geometry):
self.app.inform.emit('%s...' %
_("Starting G-Code"))
if excellon_optimization_type == 'M':
current_platform = platform.architecture()[0]
if current_platform != '64bit':
used_excellon_optimization_type = excellon_optimization_type
if used_excellon_optimization_type == 'M':
log.debug("Using OR-Tools Metaheuristic Guided Local Search drill path optimization.")
if exobj.drills:
for tool in tools:
@ -6028,7 +6030,8 @@ class CNCjob(Geometry):
return 'fail'
log.debug("The total travel distance with OR-TOOLS Metaheuristics is: %s" % str(measured_distance))
elif excellon_optimization_type == 'B':
if used_excellon_optimization_type == 'B':
log.debug("Using OR-Tools Basic drill path optimization.")
if exobj.drills:
for tool in tools:
@ -6175,6 +6178,9 @@ class CNCjob(Geometry):
log.debug("The total travel distance with OR-TOOLS Basic Algorithm is: %s" % str(measured_distance))
else:
used_excellon_optimization_type = 'T'
if used_excellon_optimization_type == 'T':
log.debug("Using Travelling Salesman drill path optimization.")
for tool in tools:
if self.app.abort_flag: