Skip to Content

Operation Group

Quick Facts

PropertyValue
ClassCENPyOlpOperationGroup
Modulecenpylib.CENPyOlpOperationGroup
Packagecenpylib
ReleaseR2025.2.4
Methods11

Quick Start

# Boilerplate Example operationGroup = ... # obtained from the runtime context result = operationGroup.GetName()

Method Index

MethodReturnsSummary
GetNamestrGet the name of the operation group.
SetNameSet the operation group name.
GetParentProgramNamestrGet the parent program name of the operation group.
GetAttribGetterCENPyOlpAttribGetterGet attribute getter interface which handles the Olp attribute container.
GetAttribSetterCENPyOlpAttribSetterGet attribute setter interface which handles the Olp attribute container.
OverrideAttributeOverride an attribute with the given name.
CreateOperationCENPyOlpOperationCreate a new operation in the operation group.
GetOperationslist[CENPyOlpOperation]Get all operations of the operation group.
GetTpElementslist[CENPyOlpTpElement]Get all toolpath elements of the operation group.
GetTpElementsWithEventlist[CENPyOlpTpElement]Get all toolpath elements of the operation group with given event name.
GetTrackslist[CENPyOlpTrack]Get all toolpath tracks of the operation group.

Lifecycle

CreateOperation

def CreateOperation(workMethodName: str, olpPgOperator: CENPyOlpProcessGeometryOperator) -> CENPyOlpOperation

Create a new operation in the operation group.

Parameters:

NameTypeDescription
workMethodNamestrWork method name which computes this operation.
olpPgOperatorCENPyOlpProcessGeometryOperatorProcess geometry operator.

Returns: CENPyOlpOperation — Newly created operation.

Query Methods

GetName

def GetName() -> str

Get the name of the operation group.

Returns: str — Operation group name.

GetParentProgramName

def GetParentProgramName() -> str

Get the parent program name of the operation group.

Returns: str — Parent program name.

GetAttribGetter

def GetAttribGetter() -> CENPyOlpAttribGetter

Get attribute getter interface which handles the Olp attribute container.

Returns: CENPyOlpAttribGetter — Attribute getter interface.

GetAttribSetter

def GetAttribSetter() -> CENPyOlpAttribSetter

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

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

NameTypeDescription
namestrNew name.

Utilities

OverrideAttribute

def OverrideAttribute(name: str)

Override an attribute with the given name.

Parameters:

NameTypeDescription
namestrName of the attribute to override.

Version Notes

This class is documented as of release R2025.2.4.

Was this page helpful?