- in Project tab, when selecting multiple CNCJob objects, in the context menu the name of the Save entry change to Batch Save and those objects are all saved each in its own file

This commit is contained in:
Marius Stanciu
2020-11-07 17:40:23 +02:00
committed by Marius
parent 231c033b5e
commit 02bdb20a08
4 changed files with 32 additions and 16 deletions

View File

@@ -7100,12 +7100,13 @@ class App(QtCore.QObject):
caption=_("Export Code ..."),
ext_filter=_filter_)
filename = filename.rpartition('/')[0]
path = filename.rpartition('/')[0]
file_extension = filename.rpartition('.')[2]
for ob in sel_objects:
ob.read_form()
fname = '%s/%s' % (filename, ob.options['name'])
ob.export_gcode_handler(fname, is_gcode=True)
fname = os.path.join(path, '%s.%s' % (ob.options['name'], file_extension))
ob.export_gcode_handler(fname, is_gcode=True, rename_object=False)
return
obj = self.collection.get_active()