Event Rule Operator
Quick Facts
| Property | Value |
|---|---|
| Class | CENPyOlpEventRuleOperator |
| Module | cenpylib.CENPyOlpEventRuleOperator |
| Package | cenpylib |
| Release | R2025.2.4 |
| Methods | 10 |
Quick Start
# Boilerplate Example
# Acquire the event object from the runtime context
eventRuleOperator = ... # provided by the frameworkMethod Index
| Method | Returns | Summary |
|---|---|---|
GetAttribGetter | CENPyOlpAttribGetter | Get attribute getter interface. |
GetAttribSetter | CENPyOlpAttribSetter | Get attribute setter interface. |
GetLoggerOperator | CENPyOlpLogOperator | Get attribute logger interface. |
GetCurrentProcessGeometryOperator | CENPyOlpProcessGeometryOperator | Get the process geometry operator of the parent operation. |
FindTpElementsByType | list[CENPyOlpTpElement] | Gets the toolpath elements with attached events of given EventProcessType. |
FindTpElementsByPositions | list[CENPyOlpTpElement] | Gets the toolpath elements fitting to positions in given array by taking given tolerance into account. |
FindTpElementsById | list[CENPyOlpTpElement] | Gets the toolpath elements fitting given request id. |
FindTpeByTechRequestId | list[CENPyOlpTpElement] | Gets the toolpath elements with the given technology request ID. |
AddTpe | — | Add a toolpath element to the list of TPEs. |
SetActiveEvent | — | Set the active event by the list index. |
Query Methods
GetAttribGetter
def GetAttribGetter() -> CENPyOlpAttribGetterGet attribute getter interface.
Returns: CENPyOlpAttribGetter — Attribute getter interface.
GetAttribSetter
def GetAttribSetter() -> CENPyOlpAttribSetterGet attribute setter interface.
Returns: CENPyOlpAttribSetter — Attribute setter interface.
GetLoggerOperator
def GetLoggerOperator() -> CENPyOlpLogOperatorGet attribute logger interface.
Returns: CENPyOlpLogOperator — Attribute logger interface.
GetCurrentProcessGeometryOperator
def GetCurrentProcessGeometryOperator() -> CENPyOlpProcessGeometryOperatorGet the process geometry operator of the parent operation.
Returns: CENPyOlpProcessGeometryOperator — PG operator if there is one, otherwise None.
FindTpElementsByType
def FindTpElementsByType(iEventProcessType: int) -> list[CENPyOlpTpElement]Gets the toolpath elements with attached events of given EventProcessType.
Parameters:
| Name | Type | Description |
|---|---|---|
iEventProcessType | int | TPE type where to attach events. |
Returns: list[CENPyOlpTpElement] — List of CENPyOlpTpElement objects, found toolpath elements.
FindTpElementsByPositions
def FindTpElementsByPositions(positions: list, tolerance: float) -> list[CENPyOlpTpElement]Gets the toolpath elements fitting to positions in given array by taking given tolerance into account.
Parameters:
| Name | Type | Description |
|---|---|---|
positions | list | List of positions, each position in [0.0, 1.0]. |
tolerance | float | Given length tolerance. |
Returns: list[CENPyOlpTpElement] — List of CENPyOlpTpElement objects, found toolpath elements.
FindTpElementsById
def FindTpElementsById(requestId: int) -> list[CENPyOlpTpElement]Gets the toolpath elements fitting given request id.
Parameters:
| Name | Type | Description |
|---|---|---|
requestId | int | Given request id - originally passed through by technology. |
Returns: list[CENPyOlpTpElement] — List of CENPyOlpTpElement objects, found toolpath elements with given request ID.
FindTpeByTechRequestId
def FindTpeByTechRequestId(techRequestId: int) -> list[CENPyOlpTpElement]Gets the toolpath elements with the given technology request ID.
Parameters:
| Name | Type | Description |
|---|---|---|
techRequestId | int | Technology request ID. |
Returns: list[CENPyOlpTpElement] — List of CENPyOlpTpElement objects, found toolpath elements marked with given technology request ID.
Mutation Methods
AddTpe
def AddTpe(tpe: CENPyOlpTpElement)Add a toolpath element to the list of TPEs.
Parameters:
| Name | Type | Description |
|---|---|---|
tpe | CENPyOlpTpElement | Toolpath element to be added. |
SetActiveEvent
def SetActiveEvent(index: int)Set the active event by the list index.
Parameters:
| Name | Type | Description |
|---|---|---|
index | int | Index of the desired event. |
Related Types
Version Notes
This class is documented as of release R2025.2.4.