Merged in marius_stanciu/flatcam_mpl/Improve_panelize_Tcl_command (pull request #92)

Improve Panelize Tcl command
This commit is contained in:
Marius Stanciu
2018-05-29 16:58:39 +00:00
committed by jpcgt
2 changed files with 23 additions and 12 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