Solved issue #188: Order of the drill bits in Gcode generation from Excellon file

The tools are ordered by diameter as I found that the tools order in the Excellon file is not always diameter based. There is also a plated / no-plated holes criteria.
The tools in the GUI tool-list are selected all by default.
If the user wants to select only some tools, he should be carefull when selecting the tools as the order of the selection will be the actual order of the tools in G-code.
This commit is contained in:
Marius Stanciu 2016-02-14 07:40:32 +02:00
parent 2bf78920ae
commit a7b29065df
2 changed files with 7 additions and 1 deletions

View File

@ -648,6 +648,12 @@ class FlatCAMExcellon(FlatCAMObj, Excellon):
dia.setFlags(QtCore.Qt.ItemIsEnabled)
self.ui.tools_table.setItem(i, 1, dia) # Diameter
i += 1
# sort the tool diameter column
self.ui.tools_table.sortItems(1)
# all the tools are selected by default
self.ui.tools_table.selectColumn(0)
self.ui.tools_table.resizeColumnsToContents()
self.ui.tools_table.resizeRowsToContents()
self.ui.tools_table.horizontalHeader().setStretchLastSection(True)

View File

@ -2746,7 +2746,7 @@ class CNCjob(Geometry):
gcode += self.pausecode + "\n"
for tool in points:
for tool in tools:
# Tool change sequence (optional)
if toolchange: