parameters: (self, obj, job)
docstring: opSetDefaultValues(obj) ... base implementation, do not overwrite.
          The base implementation sets the depths and heights based on the
          areaOpShapeForDepths() return value.
          Do not overwrite, overwrite areaOpSetDefaultValues(obj, job) instead.
docstring_summary: opSetDefaultValues(obj) ... base implementation, do not overwrite.
          The base implementation sets the depths and heights based on the
          areaOpShapeForDepths() return value.
          Do not overwrite, overwrite areaOpSetDefaultValues(obj, job) instead.
docstring_tokens: opSetDefaultValues ( obj ) ... base implementation do not overwrite . The base implementation sets the depths and heights based on the areaOpShapeForDepths () return value . Do not overwrite overwrite areaOpSetDefaultValues ( obj job ) instead .
function: def opSetDefaultValues(self, obj, job):
          """opSetDefaultValues(obj) ... base implementation, do not overwrite.
          The base implementation sets the depths and heights based on the
          areaOpShapeForDepths() return value.
          Do not overwrite, overwrite areaOpSetDefaultValues(obj, job) instead."""
          PathLog.debug("opSetDefaultValues(%s, %s)" % (obj.Label, job.Label))
  
          if PathOp.FeatureDepths & self.opFeatures(obj):
              try:
                  shape = self.areaOpShapeForDepths(obj, job)
              except Exception as ee:  # pylint: disable=broad-except
                  PathLog.error(ee)
                  shape = None
  
              # Set initial start and final depths
              if shape is None:
                  PathLog.debug("shape is None")
                  startDepth = 1.0
                  finalDepth = 0.0
              else:
                  bb = job.Stock.Shape.BoundBox
                  startDepth = bb.ZMax
                  finalDepth = bb.ZMin
  
              # obj.StartDepth.Value = startDepth
              # obj.FinalDepth.Value = finalDepth
              obj.OpStartDepth.Value = startDepth
              obj.OpFinalDepth.Value = finalDepth
  
              PathLog.debug(
                  "Default OpDepths are Start: {}, and Final: {}".format(
                      obj.OpStartDepth.Value, obj.OpFinalDepth.Value
                  )
              )
              PathLog.debug(
                  "Default Depths are Start: {}, and Final: {}".format(
                      startDepth, finalDepth
                  )
              )
  
          self.areaOpSetDefaultValues(obj, job)
function_tokens: def opSetDefaultValues ( self , obj , job ) : PathLog . debug ( "opSetDefaultValues(%s, %s)" % ( obj . Label , job . Label ) ) if PathOp . FeatureDepths & self . opFeatures ( obj ) : try : shape = self . areaOpShapeForDepths ( obj , job ) except Exception as ee : # pylint: disable=broad-except PathLog . error ( ee ) shape = None # Set initial start and final depths if shape is None : PathLog . debug ( "shape is None" ) startDepth = 1.0 finalDepth = 0.0 else : bb = job . Stock . Shape . BoundBox startDepth = bb . ZMax finalDepth = bb . ZMin # obj.StartDepth.Value = startDepth # obj.FinalDepth.Value = finalDepth obj . OpStartDepth . Value = startDepth obj . OpFinalDepth . Value = finalDepth PathLog . debug ( "Default OpDepths are Start: {}, and Final: {}" . format ( obj . OpStartDepth . Value , obj . OpFinalDepth . Value ) ) PathLog . debug ( "Default Depths are Start: {}, and Final: {}" . format ( startDepth , finalDepth ) ) self . areaOpSetDefaultValues ( obj , job )