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
•
|
RegisterPyTechnologyEvent(pyScriptName: string)
|
|
|
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')
[Example]
olpController = wmEventInitOperator.GetController()
[Example]
logOperator = wmEventInitOperator.GetLoggerOperator()
|