Reverse a Program- Printable Version +- RoboDK Forum (//m.sinclairbody.com/forum) +-- Forum: RoboDK (EN) (//m.sinclairbody.com/forum/Forum-RoboDK-EN) +--- Forum: General questions about RoboDK (//m.sinclairbody.com/forum/Forum-General-questions-about-RoboDK) +--- Thread: Reverse a Program (/Thread-Reverse-a-Program) |
Reverse a Program-Andrew_AS-12-02-2020 Hello, is there any way to reverse the order of all of the lines of a program automatically? I am looking to reverse the weld order of a program, and do not want to have to manually reorder the program. RE: Reverse a Program-Jeremy-12-03-2020 Hi Andrew, We don't have a feature to reverse a program built-in RoboDK unfortunately. But I don't think it would be very hard to code in Python. It's just a matter of picking all the commands and reversing them. The only "tricky part" is to reposition the "set frame", "set tool", "set speed" properly as brainlessly inverting those commands won't work. You can either automate that part or do it manually. Here's a very good example you can use as a starting point. //m.sinclairbody.com/doc/en/PythonAPI/examples.html#modify-program-instructions Let me know if you need help. Jeremy |