Operation
Quick Facts
| Property | Value |
|---|---|
| Class | CENPyOlpOperation |
| Module | cenpylib.CENPyOlpOperation |
| Package | cenpylib |
| Release | R2025.2.4 |
| Methods | 10 |
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. |
UpdateNameFromRule | — | Updates the Operation Name for AP dashboard. |
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.
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
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 R2025.2.4.