WM_Rule Update Operator
Quick Facts
| Property | Value |
|---|---|
| Class | CENPyOlpWM_RuleUpdateOperator |
| Module | cenpylib.CENPyOlpWM_RuleUpdateOperator |
| Package | cenpylib |
| Release | R2025.2.4 |
| Methods | 5 |
Quick Start
# Boilerplate Example
wM_RuleUpdateOperator = ... # obtained from the runtime context
result = wM_RuleUpdateOperator.GetRuleName()Method Index
| Method | Returns | Summary |
|---|---|---|
AddEvent | — | Add an event to the rule update operator. |
GetRuleName | str | Get the name of the rule. |
GetActiveEventName | str | Get the name of the currently active event. |
SetActiveEvent | — | Compare all existing event names with the given name and set the first matched event as active. |
OverrideEventRuleInsertPosition | — | Set the new insert position for the event rule. |
Query Methods
GetRuleName
def GetRuleName() -> strGet the name of the rule.
Returns: str — Rule name.
GetActiveEventName
def GetActiveEventName() -> strGet the name of the currently active event.
Returns: str — Active event name.
Mutation Methods
AddEvent
def AddEvent(eventName: str)Add an event to the rule update operator.
Parameters:
| Name | Type | Description |
|---|---|---|
eventName | str | Kernel or Python-defined event name. |
SetActiveEvent
def SetActiveEvent(eventName: str)Compare all existing event names with the given name and set the first matched event as active.
Parameters:
| Name | Type | Description |
|---|---|---|
eventName | str | Kernel or Python-defined name of the event to activate. |
Utilities
OverrideEventRuleInsertPosition
def OverrideEventRuleInsertPosition(insertPosition: int)Set the new insert position for the event rule.
Parameters:
| Name | Type | Description |
|---|---|---|
insertPosition | int | New insert position. |
Version Notes
This class is documented as of release R2025.2.4.
Was this page helpful?