parameters: (self)
return_statement: return False
docstring: getOclTool()... Call this method after class instantiation
          to return OCL tool object.
docstring_summary: getOclTool()... Call this method after class instantiation
          to return OCL tool object.
docstring_tokens: getOclTool () ... Call this method after class instantiation to return OCL tool object .
function: def getOclTool(self):
          """getOclTool()... Call this method after class instantiation
          to return OCL tool object."""
          # Check for tool controller and tool object
          if not self.tool or not self.toolMode:
              msg = translate("PathSurface", "Failed to identify tool for operation.")
              FreeCAD.Console.PrintError(msg + "\n")
              return False
  
          if not self._setDimensions():
              return False
  
          self._setToolMethod()
  
          if self.toolMethod == "None":
              err = translate(
                  "PathSurface", "Failed to map selected tool to an OCL tool type."
              )
              FreeCAD.Console.PrintError(err + "\n")
              return False
          else:
              PathLog.debug("OCL_Tool tool method: {}".format(self.toolMethod))
              oclToolMethod = getattr(self, "_ocl" + self.toolMethod)
              oclToolMethod()
  
          if self.oclTool:
              return self.oclTool
  
          # Set error messages
          err = translate(
              "PathSurface", "Failed to translate active tool to OCL tool type."
          )
          FreeCAD.Console.PrintError(err + "\n")
          return False
function_tokens: def getOclTool ( self ) : # Check for tool controller and tool object if not self . tool or not self . toolMode : msg = translate ( "PathSurface" , "Failed to identify tool for operation." ) FreeCAD . Console . PrintError ( msg + "\n" ) return False if not self . _setDimensions ( ) : return False self . _setToolMethod ( ) if self . toolMethod == "None" : err = translate ( "PathSurface" , "Failed to map selected tool to an OCL tool type." ) FreeCAD . Console . PrintError ( err + "\n" ) return False else : PathLog . debug ( "OCL_Tool tool method: {}" . format ( self . toolMethod ) ) oclToolMethod = getattr ( self , "_ocl" + self . toolMethod ) oclToolMethod ( ) if self . oclTool : return self . oclTool # Set error messages err = translate ( "PathSurface" , "Failed to translate active tool to OCL tool type." ) FreeCAD . Console . PrintError ( err + "\n" ) return False