- fixed the Tcl Command Delete to have an argument -f that will force deletion evading the popup (if the popup is enabled). The sme command without a name now will delete all objects
- fixed the Tcl Command JoinExcellons - fixed the Tcl Command JoinGeometry - fixed the Tcl Command Mirror - updated the Tcl Command Mirror to use a (X,Y) origin parameter. Works if the -box parameter is not used. - updated the Tcl Command Offset. Now it can use only -x or -y parameter no longer is mandatory to have both. The one that is not present will be assumed 0.0 - updated the Tcl Command Panelize. The -rows and -columns parameters are no longer both required. If one is not present then it is assumed to be zero. - updated the Tcl Command Scale. THe -origin parameter can now be a tuple of (x,y) coordinates. - updated the Tcl Command Skew. Now it can use only -x or -y parameter no longer is mandatory to have both. The one that is not present will be assumed 0.0 - updated the help for all the Tcl Commands
This commit is contained in:
@@ -31,10 +31,12 @@ class TclCommandOpenGCode(TclCommandSignaled):
|
||||
help = {
|
||||
'main': "Opens a G-Code file.",
|
||||
'args': collections.OrderedDict([
|
||||
('filename', 'Path to file to open.'),
|
||||
('filename', 'Absolute path to file to open. Required.\n'
|
||||
'WARNING: no spaces are allowed. If unsure enclose the entire path with quotes.'),
|
||||
('outname', 'Name of the resulting CNCJob object.')
|
||||
]),
|
||||
'examples': []
|
||||
'examples': ['open_gcode D:\\my_gcode_file.NC',
|
||||
'open_gcode "D:\\my_gcode_file with spaces in the name.TXT"']
|
||||
}
|
||||
|
||||
def execute(self, args, unnamed_args):
|
||||
@@ -48,6 +50,8 @@ class TclCommandOpenGCode(TclCommandSignaled):
|
||||
"""
|
||||
args['plot'] = False
|
||||
filename = args["filename"]
|
||||
# filename = filename.replace(' ', '')
|
||||
if ' ' in filename:
|
||||
return "The absolute path to the project file contain spaces which is not allowed.\n" \
|
||||
"Please enclose the path within quotes."
|
||||
|
||||
self.app.open_gcode(filename, **args)
|
||||
|
||||
Reference in New Issue
Block a user