Skip to content

Commit

Permalink
Path: Engrave can handle other 2D objects including sketch
Browse files Browse the repository at this point in the history
  • Loading branch information
sliptonic authored and yorikvanhavre committed Mar 21, 2017
1 parent 7d4ae8a commit 4926bfa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Mod/Path/PathScripts/PathEngrave.py
Expand Up @@ -25,7 +25,7 @@
import FreeCAD
import FreeCADGui
import Path
import Draft
#import Draft
import Part
import ArchPanel

Expand Down Expand Up @@ -118,7 +118,9 @@ def execute(self, obj):
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
Expand Down

0 comments on commit 4926bfa

Please sign in to comment.