Operation
Quick Facts
| Property | Value |
|---|---|
| Class | CENPyOlpOperation |
| Module | cenpylib.CENPyOlpOperation |
| Package | cenpylib |
| Release | R2026.1 |
| Methods | 15 |
Quick Start
# Boilerplate Example
operation = ... # obtained from the runtime context
result = operation.GetName()Method Index
| Method | Returns | Summary |
|---|---|---|
GetName | str | Get the name of the operation. |
SetName | — | Set the operation name. |
GetAttribGetter | CENPyOlpAttribGetter | Get attribute getter interface which handles the Olp attribute container. |
GetAttribSetter | CENPyOlpAttribSetter | Get attribute setter interface which handles the Olp attribute container. |
OverrideAttribute | — | Override an attribute with the given name. |
GetProcessGeometryIdentifier | str | Get the UUID of the process geometry of the current operation. |
GetTpElements | list[CENPyOlpTpElement] | Get all toolpath elements of the operation. |
GetTpElementsWithEvent | list[CENPyOlpTpElement] | Get all toolpath elements of the operation with given event name. |
GetTracks | list[CENPyOlpTrack] | Get all toolpath tracks of the operation. |
GetActiveEventRules | list[CENPyOlpEventObject] | Get all active event rules found on the operation. |
UpdateNameFromRule | — | Updates the Operation Name for AP dashboard. |
SetToolFrame | — | Sets the tool frame for the operation. |
GetToolFrame | CENPyOlpFrame | Gets the tool frame of the operation. |
SetBaseFrame | — | Sets the base frame for the operation. |
GetBaseFrame | CENPyOlpFrame | Gets the base frame of the operation. |
Query Methods
GetName
def GetName() -> strGet the name of the operation.
Returns: str — Operation group name.
GetAttribGetter
def GetAttribGetter() -> CENPyOlpAttribGetterGet attribute getter interface which handles the Olp attribute container.
Returns: CENPyOlpAttribGetter — Attribute getter interface.
GetAttribSetter
def GetAttribSetter() -> CENPyOlpAttribSetterGet attribute setter interface which handles the Olp attribute container.
Returns: CENPyOlpAttribSetter — Attribute setter interface.
GetProcessGeometryIdentifier
def GetProcessGeometryIdentifier() -> strGet the UUID of the process geometry of the current operation.
Returns: str — Process geometry UUID.
GetTpElements
def GetTpElements() -> list[CENPyOlpTpElement]Get all toolpath elements of the operation.
Returns: list[CENPyOlpTpElement] — List of CENPyOlpTpElement objects, found toolpath elements.
GetTpElementsWithEvent
def GetTpElementsWithEvent(eventName: str) -> list[CENPyOlpTpElement]Get all toolpath elements of the operation with given event name.
Parameters:
| Name | Type | Description |
|---|---|---|
eventName | str | Event name to search for. |
Returns: list[CENPyOlpTpElement] — List of CENPyOlpTpElement objects, found toolpath elements with specified event.
GetTracks
def GetTracks() -> list[CENPyOlpTrack]Get all toolpath tracks of the operation.
Returns: list[CENPyOlpTrack] — List of CENPyOlpTrack objects, found toolpath tracks.
GetActiveEventRules
def GetActiveEventRules() -> list[CENPyOlpEventObject]Get all active event rules found on the operation.
Returns: list[CENPyOlpEventObject] — List of active event-rule objects.
Mutation Methods
SetName
def SetName(name: str)Set the operation name.
Parameters:
| Name | Type | Description |
|---|---|---|
name | str | New name. |
UpdateNameFromRule
def UpdateNameFromRule()Updates the Operation Name for AP dashboard. Might be not updated from Script call
SetToolFrame
def SetToolFrame(frame: CENPyOlpFrame)Sets the tool frame for the operation.
Parameters:
| Name | Type | Description |
|---|---|---|
frame | CENPyOlpFrame | A new tool frame to be set. |
SetBaseFrame
def SetBaseFrame(frame: CENPyOlpFrame)Sets the base frame for the operation.
Parameters:
| Name | Type | Description |
|---|---|---|
frame | CENPyOlpFrame | A new base frame to be set. |
GetToolFrame
def GetToolFrame() -> CENPyOlpFrameGets the tool frame of the operation.
Returns: CENPyOlpFrame — Current tool frame.
GetBaseFrame
def GetBaseFrame() -> CENPyOlpFrameGets the base frame of the operation.
Returns: CENPyOlpFrame — Current base frame.
Utilities
OverrideAttribute
def OverrideAttribute(name: str)Override an attribute with the given name.
Parameters:
| Name | Type | Description |
|---|---|---|
name | str | Name of the attribute to override. |
Related Types
Version Notes
This class is documented as of release R2026.1.1.