The object of the CENPyOlpProgramModifyOperator class is passed to the ModifyActiveProgram callbacks as a parameter.
It can be used to obtain the required operators within the scope of the ModifyActiveProgram callback in the Auxiliary commands script files.
[Example]
def ModifyActiveProgram(Operator):
pass
This operator gives the possibility to find attribute and get its value.
[Example]
attribGetter = Operator.GetAttribGetter()
This operator gives the possibility to change attribute value.
[Example]
attribSetter = Operator.GetAttribSetter()
This operator gives the possibility to log issues resulting by user input.
[Example]
logOperator = Operator.GetLoggerOperator()
This method returns the assigned controller.
[Example]
controller = Operator.GetController()
This operator gives the possibility to work with CSV files. Please check the CENPyOlpCsvParserOperator class to see all available functions.
[Example]
csvParser = Operator.GetCsvParserOperator()
Returns the active program of the controller, nullptr, if there is no program.
[Example]
activeProgram = Operator.GetActiveProgram()
Returns the compute handler of the parent controller.
[Example]
computeHandler = Operator.GetComputeHandler()
Get an interpolation handler.
[Example]
interpolationHandler = Operator.GetInterpolationHandler()
Returns the teach handler for the current session.
[Example]
teachHandler = Operator.GetTeachHandler()
Returns the event handler for the current session.
[Example]
eventHandler = Operator.GetEventHandler()
•
|
GetProgramTpElementsByName(string: programName): list
|
Returns 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.
[Example]
tpes = olpOperation.GetProgramTpElementsByName("PRG001")
|