Extracted Job Settings into their own implementation file.

This commit is contained in:
Markus Lampert
2017-10-07 21:40:22 -07:00
parent 9cec64880f
commit 6797d5b4b5
4 changed files with 95 additions and 40 deletions

View File

@@ -25,6 +25,7 @@
import FreeCAD
import Path
import PathScripts.PathLog as PathLog
import PathScripts.PathSettings as PathSettings
import PathScripts.PathUtil as PathUtil
import PathScripts.PathUtils as PathUtils
@@ -235,8 +236,8 @@ class ObjectOp(object):
obj.StepDown = 1.0
if FeatureHeights & features:
obj.setExpression('SafeHeight', "%s.DefaultSafeHeight+StartDepth" % job.Settings.Name)
obj.setExpression('ClearanceHeight', "%s.DefaultClearanceHeight+StartDepth" % job.Settings.Name)
obj.setExpression('SafeHeight', "%s.%s+StartDepth" % (job.Settings.Name, PathSettings.Default.SafeHeight))
obj.setExpression('ClearanceHeight', "%s.%s+StartDepth" % (job.Settings.Name, PathSettings.Default.ClearanceHeight))
if FeatureStartPoint & features:
obj.UseStartPoint = False