Operation Group
Quick Facts
| Property | Value |
|---|---|
| Class | CENPyOlpOperationGroup |
| Module | cenpylib.CENPyOlpOperationGroup |
| Package | cenpylib |
| Release | R2025.2.4 |
| Methods | 11 |
Quick Start
# Boilerplate Example
operationGroup = ... # obtained from the runtime context
result = operationGroup.GetName()Method Index
| Method | Returns | Summary |
|---|---|---|
GetName | str | Get the name of the operation group. |
SetName | — | Set the operation group name. |
GetParentProgramName | str | Get the parent program name of the operation group. |
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. |
CreateOperation | CENPyOlpOperation | Create a new operation in the operation group. |
GetOperations | list[CENPyOlpOperation] | Get all operations of the operation group. |
GetTpElements | list[CENPyOlpTpElement] | Get all toolpath elements of the operation group. |
GetTpElementsWithEvent | list[CENPyOlpTpElement] | Get all toolpath elements of the operation group with given event name. |
GetTracks | list[CENPyOlpTrack] | Get all toolpath tracks of the operation group. |
Lifecycle
CreateOperation
def CreateOperation(workMethodName: str, olpPgOperator: CENPyOlpProcessGeometryOperator) -> CENPyOlpOperationCreate a new operation in the operation group.
Parameters:
| Name | Type | Description |
|---|---|---|
workMethodName | str | Work method name which computes this operation. |
olpPgOperator | CENPyOlpProcessGeometryOperator | Process geometry operator. |
Returns: CENPyOlpOperation — Newly created operation.
Query Methods
GetName
def GetName() -> strGet the name of the operation group.
Returns: str — Operation group name.
GetParentProgramName
def GetParentProgramName() -> strGet the parent program name of the operation group.
Returns: str — Parent program 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.
GetOperations
def GetOperations() -> list[CENPyOlpOperation]Get all operations of the operation group.
Returns: list[CENPyOlpOperation] — List of CENPyOlpOperation objects, found operations.
GetTpElements
def GetTpElements() -> list[CENPyOlpTpElement]Get all toolpath elements of the operation group.
Returns: list[CENPyOlpTpElement] — List of CENPyOlpTpElement objects, found toolpath elements.
GetTpElementsWithEvent
def GetTpElementsWithEvent(eventName: str) -> list[CENPyOlpTpElement]Get all toolpath elements of the operation group 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 group.
Returns: list[CENPyOlpTrack] — List of CENPyOlpTrack objects, found toolpath tracks.
Mutation Methods
SetName
def SetName(name: str)Set the operation group name.
Parameters:
| Name | Type | Description |
|---|---|---|
name | str | New name. |
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.