The object of CENPyOlpTech_RuleInitOperator class is passed to the PostTechInitRules callback as a parameter.
It can be used to obtain the required operators within the scope of the PostTechInitRules callback in the %TechnologyName%.py script file, located in the folder of the plugin.
[Example]
def PostTechInitRules(trio):
pass
|
|
Name of the rule. Kernel defined rule name may be used
|
|
|
Name of the event
|
|
|
Added event object
|
[Example]
eventObject = trio.AddPyEvent('RetractRule', 'pyLaserEvent')
eventObject.SetBool("IsLocked", True)
•
|
RemoveEventFromRule(ruleName: string, eventName: string)
|
|
|
Name of the rule. Kernel defined rule name may be used
|
|
|
Name of the event. Kernel defined event name may be used
|
[Example]
trio.RemoveEventFromRule('Approach', 'TwoPointApproach')
•
|
SetActivePyEvent(ruleName: string, eventName: string)
|
|
|
Name of the rule. Kernel defined rule name may be used.
|
|
|
Name of the event. Kernel defined event name may be used
|
[Example]
trio.SetActivePyEvent('Retract', 'ChangeRecipeEvent')
[Example]
controller = trio.GetController()
[Example]
logOperator = trio.GetLoggerOperator()
•
|
OverrideEventRuleInsertPosition(ruleName: string, insertPos: TPInsertPosition)
|
|
|
Name of the rule. Kernel defined rule name should be used
|
|
|
New insert position
|
Set the new insert position for the event rules with given name.
[Example]
trio.OverrideEventRuleInsertPosition("CustomRule", TPINSERTPOS_INSERTAFTER)
|