Program Component
Quick Facts
| Property | Value |
|---|---|
| Class | CENPyOlpProgramComponent |
| Module | cenpylib.CENPyOlpProgramComponent |
| Package | cenpylib |
| Release | R2025.2.4 |
| Methods | 4 |
Quick Start
# Boilerplate Example
programComponent = ... # obtained from the runtime context
result = programComponent.GetType()Method Index
| Method | Returns | Summary |
|---|---|---|
GetType | int | Get program component type. |
GetParentComponent | CENPyOlpProgramComponent | Get the parent program component. |
GetChildComponents | list[CENPyOlpProgramComponent] | Get list of all child components. |
GetCreatorName | str | Get the Technology/WorkMethod/Event name of program component. |
Query Methods
GetType
def GetType() -> intGet program component type.
Returns: int — Program component type.
GetParentComponent
def GetParentComponent() -> CENPyOlpProgramComponentGet the parent program component.
Returns: CENPyOlpProgramComponent — Parent program component.
GetChildComponents
def GetChildComponents() -> list[CENPyOlpProgramComponent]Get list of all child components.
Returns: list[CENPyOlpProgramComponent] — List of CENPyOlpProgramComponent objects, found child components.
GetCreatorName
def GetCreatorName() -> strGet the Technology/WorkMethod/Event name of program component.
Returns: str — Technology/WorkMethod/Event name.
Version Notes
This class is documented as of release R2025.2.4.
Was this page helpful?