Use defaults for retract height

Use the StartDepth + SafeHeightOffset to calculate the retract height in relation to the hole start height.
This commit is contained in:
Daniel Wood
2021-05-06 08:09:43 +01:00
parent 1e8e81b986
commit f497d0da04

View File

@@ -187,7 +187,7 @@ class ObjectDrilling(PathCircularHoleBase.ObjectOp):
if hasattr(job.SetupSheet, 'RetractHeight'):
obj.RetractHeight = job.SetupSheet.RetractHeight
elif self.applyExpression(obj, 'RetractHeight', 'OpStartDepth+1mm'):
elif self.applyExpression(obj, 'RetractHeight', 'StartDepth+SetupSheet.SafeHeightOffset'):
if has_job:
obj.RetractHeight = 10
else: