parameters: (self, obj)
docstring: opExecute(obj) ... generate probe locations.
docstring_summary: opExecute(obj) ... generate probe locations.
docstring_tokens: opExecute ( obj ) ... generate probe locations .
function: def opExecute(self, obj):
          """opExecute(obj) ... generate probe locations."""
          PathLog.track()
          self.commandlist.append(Path.Command("(Begin Probing)"))
  
          stock = PathUtils.findParentJob(obj).Stock
          bb = stock.Shape.BoundBox
  
          openstring = "(PROBEOPEN {})".format(obj.OutputFileName)
          self.commandlist.append(Path.Command(openstring))
          self.commandlist.append(Path.Command("G0", {"Z": obj.ClearanceHeight.Value}))
  
          for y in self.nextpoint(bb.YMin, bb.YMax, obj.PointCountY):
              for x in self.nextpoint(bb.XMin, bb.XMax, obj.PointCountX):
                  self.commandlist.append(
                      Path.Command(
                          "G0",
                          {
                              "X": x + obj.Xoffset.Value,
                              "Y": y + obj.Yoffset.Value,
                              "Z": obj.SafeHeight.Value,
                          },
                      )
                  )
                  self.commandlist.append(
                      Path.Command(
                          "G38.2",
                          {
                              "Z": obj.FinalDepth.Value,
                              "F": obj.ToolController.VertFeed.Value,
                          },
                      )
                  )
                  self.commandlist.append(Path.Command("G0", {"Z": obj.SafeHeight.Value}))
  
          self.commandlist.append(Path.Command("(PROBECLOSE)"))
function_tokens: def opExecute ( self , obj ) : PathLog . track ( ) self . commandlist . append ( Path . Command ( "(Begin Probing)" ) ) stock = PathUtils . findParentJob ( obj ) . Stock bb = stock . Shape . BoundBox openstring = "(PROBEOPEN {})" . format ( obj . OutputFileName ) self . commandlist . append ( Path . Command ( openstring ) ) self . commandlist . append ( Path . Command ( "G0" , { "Z" : obj . ClearanceHeight . Value } ) ) for y in self . nextpoint ( bb . YMin , bb . YMax , obj . PointCountY ) : for x in self . nextpoint ( bb . XMin , bb . XMax , obj . PointCountX ) : self . commandlist . append ( Path . Command ( "G0" , { "X" : x + obj . Xoffset . Value , "Y" : y + obj . Yoffset . Value , "Z" : obj . SafeHeight . Value , } , ) ) self . commandlist . append ( Path . Command ( "G38.2" , { "Z" : obj . FinalDepth . Value , "F" : obj . ToolController . VertFeed . Value , } , ) ) self . commandlist . append ( Path . Command ( "G0" , { "Z" : obj . SafeHeight . Value } ) ) self . commandlist . append ( Path . Command ( "(PROBECLOSE)" ) )