Returns the name of the program.
[Example]
program = Operator.GetActiveProgram()
programName = program.GetName()
|
|
True if the program is "main", and False if it is a subprogram.
|
Returns if the program has the "main" flag or is a subprogram.
[Example]
program = Operator.GetActiveProgram()
logging.LogInfo(f"Active program is a Main program = {program.IsMain()}.")
Returns the CENPyOlpAttribGetter operator.
[Example]
attribGetter = program.GetAttribGetter()
Returns the CENPyOlpAttribSetter operator.
[Example]
attribSetter = program.GetAttribSetter()
•
|
GetOperationGroups(): list
|
Returns all operation groups of the program.
[Example]
opGroups = program.GetOperationGroups()
Returns all operations of the program.
[Example]
operations = program.GetOperations()
•
|
GetLastCreatedOperations(): list
|
Returns last created operations of the program.
[Example]
operations = program.GetLastCreatedOperations()
Returns all toolpath elements of the program.
[Example]
tpes = program.GetTpElements()
•
|
GetTpElementsWithEvent(string: eventName): list
|
Returns all toolpath elements of the program with given event name.
[Example]
tpes = program.GetTpElementsWithEvent("EventName")
•
|
ProgramProcessGeometries(processGeometries: list): bool
|
Program the given process geometries in the active controller program with default tool and base frames.
[Example]
isSuccessful = program.ProgramProcessGeometries(processGeometries)
if isSuccessful:
logging.LogInfo("Process geometry was successfully programmed.")
•
|
ProgramProcessGeometries(processGeometries: list, baseFrameIndex: int, toolFrameIndex: int): bool
|
Program the given process geometries in the active controller program with specified tool and base frame indexes.
[Example]
isSuccessful = program.ProgramProcessGeometries(processGeometries, 2, 1)
if isSuccessful:
logging.LogInfo("Process geometry was successfully programmed.")
Get all toolpath tracks of the program.
[Example]
tracks = program.GetTracks()
|