parameters: (self, obj, job)
docstring: opSetDefaultValues(obj, job) ... set default value for RetractHeight
docstring_summary: opSetDefaultValues(obj, job) ... set default value for RetractHeight
docstring_tokens: opSetDefaultValues ( obj job ) ... set default value for RetractHeight
function: def opSetDefaultValues(self, obj, job):
          """opSetDefaultValues(obj, job) ... set default value for RetractHeight"""
          obj.ExtraOffset = "None"
  
          if hasattr(job.SetupSheet, "RetractHeight"):
              obj.RetractHeight = job.SetupSheet.RetractHeight
          elif self.applyExpression(
              obj, "RetractHeight", "StartDepth+SetupSheet.SafeHeightOffset"
          ):
              if not job:
                  obj.RetractHeight = 10
              else:
                  obj.RetractHeight.Value = obj.StartDepth.Value + 1.0
  
          if hasattr(job.SetupSheet, "PeckDepth"):
              obj.PeckDepth = job.SetupSheet.PeckDepth
          elif self.applyExpression(obj, "PeckDepth", "OpToolDiameter*0.75"):
              obj.PeckDepth = 1
  
          if hasattr(job.SetupSheet, "DwellTime"):
              obj.DwellTime = job.SetupSheet.DwellTime
          else:
              obj.DwellTime = 1
function_tokens: def opSetDefaultValues ( self , obj , job ) : obj . ExtraOffset = "None" if hasattr ( job . SetupSheet , "RetractHeight" ) : obj . RetractHeight = job . SetupSheet . RetractHeight elif self . applyExpression ( obj , "RetractHeight" , "StartDepth+SetupSheet.SafeHeightOffset" ) : if not job : obj . RetractHeight = 10 else : obj . RetractHeight . Value = obj . StartDepth . Value + 1.0 if hasattr ( job . SetupSheet , "PeckDepth" ) : obj . PeckDepth = job . SetupSheet . PeckDepth elif self . applyExpression ( obj , "PeckDepth" , "OpToolDiameter*0.75" ) : obj . PeckDepth = 1 if hasattr ( job . SetupSheet , "DwellTime" ) : obj . DwellTime = job . SetupSheet . DwellTime else : obj . DwellTime = 1