RoboDK Forum
Make a loop - roboDK——革命制度党ntable Version

+- RoboDK Forum (//m.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//m.sinclairbody.com/forum/Forum-RoboDK-EN)
+ - - -论坛:通用RoboDK问题(//m.sinclairbody.com/forum/Forum-General-questions-about-RoboDK)
+--- Thread: Make a loop - roboDK (/Thread-Make-a-loop-roboDK)



Make a loop - roboDK-Jonatanlaz-02-23-2022

Hello,
I would need help from someone who knew how to call a program in Robodk, to run the program from a starting point that is different each time. It would be to make a loop but start it from different positions and that the values of the points that this program runs through were the same but with respect to the initial point of origin.
Thanks.


RE: Make a loop - roboDK-Olivier-02-23-2022

You can call a program that set a new origin before calling the main program, that way the targets will be relative to the new origin. See the attached example.


RE: Make a loop - roboDK-Jonatanlaz-02-24-2022

Thank you very much!! Another question I have... is there an option to automatically create the new frame displaced every time you run the program "Prog.1"? I need to run "Prog.1" many times and I don't want to have to create hundreds of frames.


RE: Make a loop - roboDK-Jeremy-02-24-2022

Using the Python API would be the way there.

You can create all your frame and automatically create the main program exactly as Oliver did.
//m.sinclairbody.com/doc/en/PythonAPI/intro.html

Jeremy


RE: Make a loop - roboDK-Jonatanlaz-02-25-2022

Thank you very much!!