Program Modify Operator
Quick Facts
| Property | Value |
|---|---|
| Class | CENPyOlpProgramModifyOperator |
| Module | cenpylib.CENPyOlpProgramModifyOperator |
| Package | cenpylib |
| Release | R2025.2.4 |
| Methods | 12 |
Quick Start
# Boilerplate Example
programModifyOperator = ... # obtained from the runtime context
result = programModifyOperator.GetAttribGetter()Method Index
| Method | Returns | Summary |
|---|---|---|
GetAttribGetter | CENPyOlpAttribGetter | Get attribute getter interface which handles the Olp attribute container. |
GetAttribSetter | CENPyOlpAttribSetter | Get attribute setter interface which handles the Olp attribute container. |
GetController | CENPyOlpController | Get the parent controller interface. |
GetLoggerOperator | CENPyOlpLogOperator | Get the log operator interface. |
GetCsvParserOperator | CENPyOlpCsvParserOperator | Get the CSV parser operator interface. |
GetActiveProgram | CENPyOlpProgram | Get the active program of the controller, nullptr, if there is no program. |
GetComputeHandler | CENPyOlpComputeHandler | Get the compute handler of the parent controller. |
GetInterpolationHandler | CENPyOlpInterpolationHandler | Get an interpolation handler. |
GetTeachHandler | CENPyOlpTeachHandler | Get the teach handler for the current session. |
GetEventHandler | CENPyOlpEventHandler | Get the event handler. |
GetProgramTpElementsByName | list[CENPyOlpTpElement] | Get all toolpath elements of the program with the given name. |
CreateMatrix | CENPyOlpMatrix | Creates a new unit matrix. |
Lifecycle
CreateMatrix
def CreateMatrix() -> CENPyOlpMatrixCreates a new unit matrix.
Returns: CENPyOlpMatrix — Newly created matrix
Query Methods
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.
GetController
def GetController() -> CENPyOlpControllerGet the parent controller interface.
Returns: CENPyOlpController — Controller interface.
GetLoggerOperator
def GetLoggerOperator() -> CENPyOlpLogOperatorGet the log operator interface.
Returns: CENPyOlpLogOperator — Log operator interface.
GetCsvParserOperator
def GetCsvParserOperator() -> CENPyOlpCsvParserOperatorGet the CSV parser operator interface.
Returns: CENPyOlpCsvParserOperator — CSV parser operator interface.
GetActiveProgram
def GetActiveProgram() -> CENPyOlpProgramGet the active program of the controller, nullptr, if there is no program.
Returns: CENPyOlpProgram — Active off-line program.
GetComputeHandler
def GetComputeHandler() -> CENPyOlpComputeHandlerGet the compute handler of the parent controller.
Returns: CENPyOlpComputeHandler — Compute handler.
GetInterpolationHandler
def GetInterpolationHandler() -> CENPyOlpInterpolationHandlerGet an interpolation handler.
Returns: CENPyOlpInterpolationHandler — Interpolation handler.
GetTeachHandler
def GetTeachHandler() -> CENPyOlpTeachHandlerGet the teach handler for the current session.
Returns: CENPyOlpTeachHandler — Teach handler.
GetEventHandler
def GetEventHandler() -> CENPyOlpEventHandlerGet the event handler.
Returns: CENPyOlpEventHandler — Event handler.
GetProgramTpElementsByName
def GetProgramTpElementsByName(programName: str) -> list[CENPyOlpTpElement]Get all toolpath elements of the program with the given name. If there is no program with that name the list is going to be empty.
Parameters:
| Name | Type | Description |
|---|---|---|
programName | str | — |
Returns: list[CENPyOlpTpElement] — List of CENPyOlpTpElement objects, found toolpath elements.
Related Types
- Attrib Getter
- Attrib Setter
- Controller
- Log Operator
- Csv Parser Operator
- Program
- Compute Handler
- Interpolation Handler
- Teach Handler
- Event Handler
- Matrix
Version Notes
This class is documented as of release R2025.2.4.