Skip to Content

Upload Program

Quick Facts

PropertyValue
ClassULPythonProgram
Modulecenpyupload.ULPythonProgram
Packagecenpyupload
ReleaseR2025.2.4
Methods11
Inherits fromDULPythonProgram

Inheritance

Method Index

MethodReturnsSummary
SetOperationsGroups—Set the operation groups for the program
SetSubprograms—Set the sub programs of the program
AddOperationGroup—add an operation group to this program
AddSubprogram—add a subprogram to this program
SetUsedBaseProfile—Set the used base profile for the program
SetUsedToolProfile—Set the used tool profile for the program
SetController—Set the controller for the program
SetIsMainProgram—Set the program status as main or not
SetName—Set the name of the program
SetAttributes—Set the attributes of the program
AddAttribute—Add an attribute to the attribute list

Mutation Methods

SetOperationsGroups

def SetOperationsGroups(operationGroups: list)

Set the operation groups for the program

Parameters:

NameTypeDescription
operationGroupslistlist of ULPythonOperationGroup operation groups to be set

SetSubprograms

def SetSubprograms(subprograms: list)

Set the sub programs of the program

Parameters:

NameTypeDescription
subprogramslistlist of ULPythonSubprograms subprograms to be set

AddOperationGroup

def AddOperationGroup(operationGroup: ULPythonOperationGroup)

add an operation group to this program

Parameters:

NameTypeDescription
operationGroupULPythonOperationGroupoperation group ULPythonOperationGroup to be added

AddSubprogram

def AddSubprogram(subprogram: ULPythonSubprogram)

add a subprogram to this program

Parameters:

NameTypeDescription
subprogramULPythonSubprogramsubprogram ULPythonSubprogram to be added

SetUsedBaseProfile

def SetUsedBaseProfile(baseProfile: ULPythonBaseProfile)

Set the used base profile for the program

Parameters:

NameTypeDescription
baseProfileULPythonBaseProfilethe used base profile object of type ULPythonBaseProfile

SetUsedToolProfile

def SetUsedToolProfile(toolProfile: ULPythonToolProfile)

Set the used tool profile for the program

Parameters:

NameTypeDescription
toolProfileULPythonToolProfilethe used tool profile object of type UlPythonToolProfile

SetController

def SetController(controller: ULPythonController)

Set the controller for the program

Parameters:

NameTypeDescription
controllerULPythonControllercontroller to be set, object of type ULPythonController

SetIsMainProgram

def SetIsMainProgram(isMain: bool)

Set the program status as main or not

Parameters:

NameTypeDescription
isMainboolif the program is main or not

SetName

def SetName(name: str)

Set the name of the program

Parameters:

NameTypeDescription
namestrname to be set

SetAttributes

def SetAttributes(attributes: list)

Set the attributes of the program

Parameters:

NameTypeDescription
attributeslistattributes to be set

AddAttribute

def AddAttribute(attrib: OlpCorePythonAttribute)

Add an attribute to the attribute list

Parameters:

NameTypeDescription
attribOlpCorePythonAttributeattribute to be added

Version Notes

This class is documented as of release R2026.1.1.

Was this page helpful?