Skip to Content

Operation

Quick Facts

PropertyValue
ClassCENPyOlpOperation
Modulecenpylib.CENPyOlpOperation
Packagecenpylib
ReleaseR2025.2.4
Methods10

Quick Start

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

Method Index

MethodReturnsSummary
GetNamestrGet the name of the operation.
SetNameSet the operation name.
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.
GetProcessGeometryIdentifierstrGet the UUID of the process geometry of the current operation.
GetTpElementslist[CENPyOlpTpElement]Get all toolpath elements of the operation.
GetTpElementsWithEventlist[CENPyOlpTpElement]Get all toolpath elements of the operation with given event name.
GetTrackslist[CENPyOlpTrack]Get all toolpath tracks of the operation.
UpdateNameFromRuleUpdates the Operation Name for AP dashboard.

Query Methods

GetName

def GetName() -> str

Get the name of the operation.

Returns: str — Operation group 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.

GetProcessGeometryIdentifier

def GetProcessGeometryIdentifier() -> str

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

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.

Returns: list[CENPyOlpTrack] — List of CENPyOlpTrack objects, found toolpath tracks.

Mutation Methods

SetName

def SetName(name: str)

Set the operation name.

Parameters:

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

NameTypeDescription
namestrName of the attribute to override.

Version Notes

This class is documented as of release R2025.2.4.

Was this page helpful?