The object of CENPyOlpTech_EventInitOperator class is passed to the PostTechInitEvents callback as a parameter.
It can be used to obtain the required operators within the scope of the PostTechInitEvents callback in the %TechnologyName%.py script file, located in the folder of the plugin.
[Example]
def PostTechInitEvents(techEventInitOperator):
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]
techEventInitOperator.RegisterPyTechnologyEvent('GasEvent.py')
[Example]
olpController = techEventInitOperator.GetController()
[Example]
logOperator = techEventInitOperator.GetLoggerOperator()
|