parameters: (self, obj, job)
docstring: opSetDefaultValues(obj, job) ... initialize defaults
docstring_summary: opSetDefaultValues(obj, job) ... initialize defaults
docstring_tokens: opSetDefaultValues ( obj job ) ... initialize defaults
function: def opSetDefaultValues(self, obj, job):
          """opSetDefaultValues(obj, job) ... initialize defaults"""
          job = PathUtils.findParentJob(obj)
  
          self.opApplyPropertyDefaults(obj, job, self.addNewProps)
  
          # need to overwrite the default depth calculations for facing
          d = None
          if job:
              if job.Stock:
                  d = PathUtils.guessDepths(job.Stock.Shape, None)
                  obj.IgnoreOuterAbove = job.Stock.Shape.BoundBox.ZMax + 0.000001
                  PathLog.debug("job.Stock exists")
              else:
                  PathLog.debug("job.Stock NOT exist")
          else:
              PathLog.debug("job NOT exist")
  
          if d is not None:
              obj.OpFinalDepth.Value = d.final_depth
              obj.OpStartDepth.Value = d.start_depth
          else:
              obj.OpFinalDepth.Value = -10
              obj.OpStartDepth.Value = 10
  
          PathLog.debug("Default OpFinalDepth: {}".format(obj.OpFinalDepth.Value))
          PathLog.debug("Default OpStartDepth: {}".format(obj.OpStartDepth.Value))
function_tokens: def opSetDefaultValues ( self , obj , job ) : job = PathUtils . findParentJob ( obj ) self . opApplyPropertyDefaults ( obj , job , self . addNewProps ) # need to overwrite the default depth calculations for facing d = None if job : if job . Stock : d = PathUtils . guessDepths ( job . Stock . Shape , None ) obj . IgnoreOuterAbove = job . Stock . Shape . BoundBox . ZMax + 0.000001 PathLog . debug ( "job.Stock exists" ) else : PathLog . debug ( "job.Stock NOT exist" ) else : PathLog . debug ( "job NOT exist" ) if d is not None : obj . OpFinalDepth . Value = d . final_depth obj . OpStartDepth . Value = d . start_depth else : obj . OpFinalDepth . Value = - 10 obj . OpStartDepth . Value = 10 PathLog . debug ( "Default OpFinalDepth: {}" . format ( obj . OpFinalDepth . Value ) ) PathLog . debug ( "Default OpStartDepth: {}" . format ( obj . OpStartDepth . Value ) )