- fixed an bug where the pywrapcp name from Google OR-Tools is not defined
This commit is contained in:
@@ -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
|
- 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
|
- 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 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
|
16.09.2019
|
||||||
|
|
||||||
|
|||||||
12
camlib.py
12
camlib.py
@@ -5867,8 +5867,10 @@ class CNCjob(Geometry):
|
|||||||
|
|
||||||
self.app.inform.emit('%s...' %
|
self.app.inform.emit('%s...' %
|
||||||
_("Starting G-Code"))
|
_("Starting G-Code"))
|
||||||
|
current_platform = platform.architecture()[0]
|
||||||
if excellon_optimization_type == 'M':
|
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.")
|
log.debug("Using OR-Tools Metaheuristic Guided Local Search drill path optimization.")
|
||||||
if exobj.drills:
|
if exobj.drills:
|
||||||
for tool in tools:
|
for tool in tools:
|
||||||
@@ -6028,7 +6030,8 @@ class CNCjob(Geometry):
|
|||||||
return 'fail'
|
return 'fail'
|
||||||
|
|
||||||
log.debug("The total travel distance with OR-TOOLS Metaheuristics is: %s" % str(measured_distance))
|
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.")
|
log.debug("Using OR-Tools Basic drill path optimization.")
|
||||||
if exobj.drills:
|
if exobj.drills:
|
||||||
for tool in tools:
|
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))
|
log.debug("The total travel distance with OR-TOOLS Basic Algorithm is: %s" % str(measured_distance))
|
||||||
else:
|
else:
|
||||||
|
used_excellon_optimization_type = 'T'
|
||||||
|
|
||||||
|
if used_excellon_optimization_type == 'T':
|
||||||
log.debug("Using Travelling Salesman drill path optimization.")
|
log.debug("Using Travelling Salesman drill path optimization.")
|
||||||
for tool in tools:
|
for tool in tools:
|
||||||
if self.app.abort_flag:
|
if self.app.abort_flag:
|
||||||
|
|||||||
Reference in New Issue
Block a user