PostWmInitRules
The callback PostWmInitRules (CENPyOlpWM_RuleInitOperator) is called just after the kernel initializes the workmethod event rules.
Il peut être utilisé pour :
-
initialisation des règles d’événement Workmethod
-
accéder à OlpController
-
sortie au journal
The callback is defined in the %WORKMETHOD_NAME%.py file that is located in the scripts folder of the plugin.
def PostTechInitAttributes(techAttribInitOperator):
def PostWmInitRules(wmRuleInitOperator):
wmRuleInitOperator.AddPyEvent('myRetractRule', 'ZAxisEvent')
wmRuleInitOperator.AddPyEvent('myRetractRule', 'GasEvent')Was this page helpful?