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 = []