Convert python script into robodk program- Printable Version +- RoboDK Forum (//m.sinclairbody.com/forum) +-- Forum: RoboDK (EN) (//m.sinclairbody.com/forum/Forum-RoboDK-EN) +--- Forum: RoboDK API (//m.sinclairbody.com/forum/Forum-RoboDK-API) +--- Thread: Convert python script into robodk program (/Thread-Convert-python-script-into-robodk-program) |
Convert python script into robodk program-Welid-11-05-2020 Hello, I'am currently working on a PYTHON program for ROBODK to automatically to generate trajectories from points. I have succeeded to create the python program but i would like to know if it's able to adjust certain trajectories between the waypoints by integrating intermediate points manually. For that, it would be necessary that the python program can be converted into a classic RoboDK program (MoveL, MoveJ,…). So i can adjust part of the program directly in ROBODK without editing the PYTHON script i didn't find a way to do that . Only exporting directly to postpro Robot seems possible. Could you indicate if this is feasible and in what way? Thanking you RE: Convert python script into robodk program-Jeremy-11-05-2020 Hi Welid, You can use "addTarget" to create a target in your simulation environment using Python. //m.sinclairbody.com/doc/en/PythonAPI/robolink.html#robolink.Robolink.AddTarget Jeremy RE: Convert python script into robodk program-Welid-11-09-2020 Thank you Jermey for your reply , I have already created target with python that I can see on ROBODK display but i can't see the other instructions like the type of the move (MoveL, MoveJ) to reach the target , i want to convert all my python script into a visual robodk instructions . Sincerly , RE: Convert python script into robodk program-Jeremy-11-10-2020 Hi, I think this example of code from our documentation could help you:
Code:
# Turn off rendering (faster)
Jeremy |