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, located in the folder of the plugin.

 

[Example]

 

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