Path: if TC is none, partials wouldn't post

added H parameter to linuxcnc post for tool length offset
This commit is contained in:
sliptonic
2017-06-27 09:25:57 -05:00
committed by wmayer
parent 266fb0b70f
commit 3254aca61a
2 changed files with 4 additions and 3 deletions

View File

@@ -250,8 +250,9 @@ class CommandPathPost:
PathLog.debug("obj: {}".format(obj.Name))
if not isinstance(obj.Proxy, PathToolController.ToolController):
tc = PathUtil.toolControllerForOp(obj)
if tc.ToolNumber != currTool:
postlist.append(tc)
if tc is not None:
if tc.ToolNumber != currTool:
postlist.append(tc)
postlist.append(obj)
fail = True

View File

@@ -225,7 +225,7 @@ def parse(pathobj):
# params = ['X','Y','Z','A','B','I','J','K','F','S'] #This list control
# the order of parameters
# linuxcnc doesn't want K properties on XY plane Arcs need work.
params = ['X', 'Y', 'Z', 'A', 'B', 'I', 'J', 'F', 'S', 'T', 'Q', 'R', 'L']
params = ['X', 'Y', 'Z', 'A', 'B', 'I', 'J', 'F', 'S', 'T', 'Q', 'R', 'L', 'H']
if hasattr(pathobj, "Group"): # We have a compound or project.
# if OUTPUT_COMMENTS: