Python scripting - Technology operators

CENPyOlpTech_RecipeOperator

 

The object of the CENPyOlpTech_RecipeOperator class is passed to the PrevExecuteRecipe callback as a parameter.

It can be used to obtain the required operators within the scope of the PrevExecuteRecipe callback in the %TechnologyName%.py script file.

 

[Example]

File: Samples\JenoptikPluginUpdated\Plugin\TechnologyPackages\LaserCuttingTechnology\Jenoptik\LaserCuttingTechnology.py

 

def PrevExecuteRecipe(recipeOperator):

   return(False) # False - Technology predefined recipe will be executed after this callback, True - Technology predefined recipe will not be executed

 

 

Methods

 

 Method is deprecated, consider using GetSelectedProcessGeometries() method instead

 

GetActiveProcessGeometries(): list

 

o

return

list sequence of CENPyOlpProcessGeometryOperator objects

 

[Example]  

   pgOperators = recipeOperator.GetActiveProcessGeometries() 

 


 

GetSelectedProcessGeometries(): list

 

o

return

list sequence of CENPyOlpProcessGeometryOperator objects

 

[Example]  

   pgOperators = recipeOperator.GetSelectedProcessGeometries() 

 


 

GetOperationGroup(): CENPyOlpOperationGroup

 

o

return

Object of CENPyOlpOperationGroup class

 

[Example]

   opGroup = recipeOperator.GetOperationGroup()

 


 

GetGroupsToCompute(): CENPyOlpOperationGroup

 

o

return

list sequence of CENPyOlpOperationGroup objects

 

[Example]

   gtc = recipeOperator.GetGroupsToCompute()

 


 

GetAttribGetter(): CENPyOlpAttribGetter

 

o

return

Object of CENPyOlpAttribGetter class

 

[Example]

   attribGetter = recipeOperator.GetAttribGetter()

 


 

GetLoggerOperator(): CENPyOlpLogOperator

 

o

return

Object of CENPyOlpLogOperator class

 

[Example]

   logOperator = recipeOperator.GetLoggerOperator()

 


 

 


Previous
Page précédente
Chapter
Page principale du chapitre
Next
Page suivante