Fixed all ops to use Op...Depth in order to not mess with the expressions.

This commit is contained in:
Markus Lampert
2017-10-16 20:55:11 -07:00
parent 1a29468094
commit eaa7b6f591
11 changed files with 205 additions and 101 deletions

View File

@@ -246,13 +246,13 @@ class ObjectOp(object):
obj.OpToolDiameter = 1.0
if FeatureDepths & features:
obj.setExpression('StartDepth', 'OpStartDepth')
obj.setExpression('FinalDepth', 'OpFinalDepth')
obj.setExpression('StartDepth', job.SetupSheet.StartDepthExpression)
obj.setExpression('FinalDepth', job.SetupSheet.FinalDepthExpression)
obj.OpStartDepth = 1.0
obj.OpFinalDepth = 0.0
if FeatureStepDown & features:
obj.setExpression('StepDown', 'OpToolDiameter')
obj.setExpression('StepDown', job.SetupSheet.StepDownExpression)
if FeatureHeights & features:
if job.SetupSheet.SafeHeightExpression:
@@ -264,6 +264,7 @@ class ObjectOp(object):
obj.UseStartPoint = False
self.opSetDefaultValues(obj)
obj.recompute()
def _setBaseAndStock(self, obj, ignoreErrors=False):
job = PathUtils.findParentJob(obj)