Merged Improve_panelize_Tcl_command into master

This commit is contained in:
Marius Stanciu
2018-05-30 03:00:42 +03:00
3 changed files with 25 additions and 14 deletions

View File

@@ -13,7 +13,7 @@ class TclCommandPanelize(TclCommand.TclCommand):
"""
# List of all command aliases, to be able use old names for backward compatibility (add_poly, add_polygon)
aliases = ['panelize']
aliases = ['panelize', 'pan', 'panel']
# Dictionary of types from Tcl command, needs to be ordered
arg_names = collections.OrderedDict([
@@ -130,10 +130,9 @@ class TclCommandPanelize(TclCommand.TclCommand):
for col in range(args['columns']):
local_outname = outname + ".tmp." + str(col) + "." + str(row)
if isinstance(obj, FlatCAMExcellon):
self.app.new_object("excellon", local_outname, initialize_local_excellon)
self.app.new_object("excellon", local_outname, initialize_local_excellon, plot=False)
else:
self.app.new_object("geometry", local_outname, initialize_local)
self.app.new_object("geometry", local_outname, initialize_local, plot=False)
currentx += lenghtx
currenty += lenghty