Python scripting - Technology operators

CENPyOlpTech_EventInitOperator

 

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.

 

[Example]

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

 

def PostTechInitEvents(techEventInitOperator):

   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]

   techEventInitOperator.RegisterPyTechnologyEvent('GasEvent.py')

 


 

GetController(): CENPyOlpController

 

o

return

Object of CENPyOlpController class

 

[Example]

   olpController = techEventInitOperator.GetController()

 


 

GetLoggerOperator(): CENPyOlpLogOperator

 

o

return

Object of CENPyOlpLogOperator class

 

[Example]

   logOperator = techEventInitOperator.GetLoggerOperator()

 


 

 

 


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