From c7afbd1e12ccb8c2c2bc568263377ae7b235e32b Mon Sep 17 00:00:00 2001 From: sliptonic Date: Mon, 8 May 2017 17:42:46 -0500 Subject: [PATCH] Path: Engrave was using safeheight and clearance incorrectly. --- src/Mod/Path/PathScripts/PathEngrave.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathEngrave.py b/src/Mod/Path/PathScripts/PathEngrave.py index d825b2d151..982992aad6 100644 --- a/src/Mod/Path/PathScripts/PathEngrave.py +++ b/src/Mod/Path/PathScripts/PathEngrave.py @@ -182,7 +182,8 @@ class ObjectPathEngrave: if not last: # we set the first move to our first point last = edge.Vertexes[0].Point - output += "G0" + " X" + PathUtils.fmt(last.x) + " Y" + PathUtils.fmt(last.y) + " Z" + PathUtils.fmt(obj.SafeHeight.Value) + "F " + PathUtils.fmt(self.horizRapid) # Rapid sto starting position + output += "G0" + " X" + PathUtils.fmt(last.x) + " Y" + PathUtils.fmt(last.y) + " Z" + PathUtils.fmt(obj.ClearanceHeight.Value) + "F " + PathUtils.fmt(self.horizRapid) # Rapid to starting position + output += "G0" + " X" + PathUtils.fmt(last.x) + " Y" + PathUtils.fmt(last.y) + " Z" + PathUtils.fmt(obj.SafeHeight.Value) + "F " + PathUtils.fmt(self.horizRapid) # Rapid to safe height output += "G1" + " X" + PathUtils.fmt(last.x) + " Y" + PathUtils.fmt(last.y) + " Z" + PathUtils.fmt(obj.FinalDepth.Value) + "F " + PathUtils.fmt(self.vertFeed) + "\n" # Vertical feed to depth if isinstance(edge.Curve, Part.Circle): point = edge.Vertexes[-1].Point @@ -209,7 +210,7 @@ class ObjectPathEngrave: output += " F " + PathUtils.fmt(self.horizFeed) output += "\n" last = point - output += "G0 Z " + PathUtils.fmt(obj.SafeHeight.Value) + output += "G0 Z " + PathUtils.fmt(obj.ClearanceHeight.Value) return output