Skip to Content
FASTSUITE E2API ReferencePython APIAPI DomainsEvent HandlingEvent Rule Operator

Event Rule Operator

Quick Facts

PropertyValue
ClassCENPyOlpEventRuleOperator
Modulecenpylib.CENPyOlpEventRuleOperator
Packagecenpylib
ReleaseR2025.2.4
Methods10

Quick Start

# Boilerplate Example # Acquire the event object from the runtime context eventRuleOperator = ... # provided by the framework

Method Index

MethodReturnsSummary
GetAttribGetterCENPyOlpAttribGetterGet attribute getter interface.
GetAttribSetterCENPyOlpAttribSetterGet attribute setter interface.
GetLoggerOperatorCENPyOlpLogOperatorGet attribute logger interface.
GetCurrentProcessGeometryOperatorCENPyOlpProcessGeometryOperatorGet the process geometry operator of the parent operation.
FindTpElementsByTypelist[CENPyOlpTpElement]Gets the toolpath elements with attached events of given EventProcessType.
FindTpElementsByPositionslist[CENPyOlpTpElement]Gets the toolpath elements fitting to positions in given array by taking given tolerance into account.
FindTpElementsByIdlist[CENPyOlpTpElement]Gets the toolpath elements fitting given request id.
FindTpeByTechRequestIdlist[CENPyOlpTpElement]Gets the toolpath elements with the given technology request ID.
AddTpeAdd a toolpath element to the list of TPEs.
SetActiveEventSet the active event by the list index.

Query Methods

GetAttribGetter

def GetAttribGetter() -> CENPyOlpAttribGetter

Get attribute getter interface.

Returns: CENPyOlpAttribGetter — Attribute getter interface.

GetAttribSetter

def GetAttribSetter() -> CENPyOlpAttribSetter

Get attribute setter interface.

Returns: CENPyOlpAttribSetter — Attribute setter interface.

GetLoggerOperator

def GetLoggerOperator() -> CENPyOlpLogOperator

Get attribute logger interface.

Returns: CENPyOlpLogOperator — Attribute logger interface.

GetCurrentProcessGeometryOperator

def GetCurrentProcessGeometryOperator() -> CENPyOlpProcessGeometryOperator

Get 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:

NameTypeDescription
iEventProcessTypeintTPE 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:

NameTypeDescription
positionslistList of positions, each position in [0.0, 1.0].
tolerancefloatGiven 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:

NameTypeDescription
requestIdintGiven 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:

NameTypeDescription
techRequestIdintTechnology 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:

NameTypeDescription
tpeCENPyOlpTpElementToolpath element to be added.

SetActiveEvent

def SetActiveEvent(index: int)

Set the active event by the list index.

Parameters:

NameTypeDescription
indexintIndex of the desired event.

Version Notes

This class is documented as of release R2025.2.4.

Was this page helpful?