06-30-2022, 05:31 PM
I'm trying to generate robot programs from programs in my simulation. Manually, I must right-click on the program and click on "Recalculate targets" before clicking "Generate Robot Program". If I don't recalculate targets, the generated robot program does not have the correct targets. I would like to recalculate targets and generate robot program from the Python API (my simulation is generated from the API). I can generate the robot programs using the following:
However, I have not found a method for recalculating targets before generating the program.
I tried:
But this still did not write the correct targets to the generated program. Has anyone been able to resolve this issue?
Thank you
Code:
program.MakeProgram(filepath, RUNMODE_MAKE_ROBOTPROG)
However, I have not found a method for recalculating targets before generating the program.
I tried:
Code:
program.Update()
But this still did not write the correct targets to the generated program. Has anyone been able to resolve this issue?
Thank you