From c3e7d7c73fd048aaacd239cc2ddcc24da0b8f092 Mon Sep 17 00:00:00 2001 From: Daniel Wood Date: Wed, 28 Aug 2019 21:00:13 +0100 Subject: [PATCH] Add tool height offsets to Linuxcnc_post --- src/Mod/Path/PathScripts/post/linuxcnc_post.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/Path/PathScripts/post/linuxcnc_post.py b/src/Mod/Path/PathScripts/post/linuxcnc_post.py index 450048c74829..792826e1bc56 100644 --- a/src/Mod/Path/PathScripts/post/linuxcnc_post.py +++ b/src/Mod/Path/PathScripts/post/linuxcnc_post.py @@ -354,6 +354,10 @@ def parse(pathobj): for line in TOOL_CHANGE.splitlines(True): out += linenumber() + line + # add height offset + tool_height = '\nG43 H' + str(int(c.Parameters['T'])) + outstring.append(tool_height) + if command == "message": if OUTPUT_COMMENTS is False: out = []