Skip to Content

PostTechInitRules

The callback PostTechInitRules (CENPyOlpTech_RuleInitOperator) is called just after the kernel initializes the technology event rules.

Il peut être utilisé pour :

  • initialisation des règles d’événement technologique

  • sortie au journal

In order to add an event to the rule it should be registered in the PostTechInitEvents callback.

The callback is defined in the %TechnologyName%.py file that is located in the scripts folder of the plugin.

def PostTechInitRules(trio): trio.AddPyEvent('myRetractRule', 'GasEvent') trio.AddPyEvent('myRetractRule', 'LaserEvent') [Example] File: Samples\JenoptikPluginUpdated\Plugin\TechnologyPackages\LaserCuttingTechnology\Jenoptik\JO_RETRACT_RULE.py from centypes import * def GetRuleProcessType(): return EVENTPROCESS_RETRACT def GetInsertPosition(): return TPINSERTPOS_INSERTAFTER def GetActiveEvent(): return 0 def GetVisibility(): return True
Was this page helpful?