Path: Engrave can handle other 2D objects including sketch

This commit is contained in:
sliptonic
2017-03-15 23:58:19 -05:00
committed by Yorik van Havre
parent 7d4ae8a851
commit 4926bfade4

View File

@@ -25,7 +25,7 @@
import FreeCAD
import FreeCADGui
import Path
import Draft
#import Draft
import Part
import ArchPanel
@@ -118,7 +118,9 @@ class ObjectPathEngrave:
return
try:
if isinstance(baseobject.Proxy, Draft._ShapeString):
if baseobject.isDerivedFrom('Sketcher::SketchObject') or \
baseobject.isDerivedFrom('Part::Part2DObject'):
output += "G0 Z" + PathUtils.fmt(obj.ClearanceHeight.Value) + "F " + PathUtils.fmt(self.vertRapid) + "\n"
# we only consider the outer wire if this is a Face