Python scripting - Workmethod operators

CENPyOlpWM_EventInitOperator

 

The object of the CENPyOlpWM_EventInitOperator class is passed to the PostWmInitEvents callback as a parameter.

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

 

[Example]

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

 

def PostWmInitEvents(wmEventInitOperator):

   pass

 

 

Methods

 

RegisterPyTechnologyEvent(pyScriptName: string)

 

o

pyScriptName

Name of the python script file of event. File should be located in the folder specified for current technology scripts.

 

[Example]

   wmEventInitOperator.RegisterPyTechnologyEvent('GasEvent.py')

 


 

GetController(): CENPyOlpController

 

o

return

Object of CENPyOlpController class

 

[Example]

   olpController = wmEventInitOperator.GetController()

 


 

GetLoggerOperator(): CENPyOlpLogOperator

 

o

return

Object of CENPyOlpLogOperator class

 

[Example]

   logOperator = wmEventInitOperator.GetLoggerOperator()

 


 

 


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