Modify MoveL to MoveJ- Printable Version +- RoboDK Forum (//www.sinclairbody.com/forum) +-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN) +--- Forum: RoboDK API (//www.sinclairbody.com/forum/Forum-RoboDK-API) +--- Thread: Modify MoveL to MoveJ (/Thread-Modify-MoveL-to-MoveJ) |
Modify MoveL to MoveJ-AlejandroSeikiRobotics-01-29-2021 Hello everybody, I am trying to modify all MoveL instructions of a program by MoveJ. I have looked at the Modify Program Instruction example (//www.sinclairbody.com/doc/en/PythonAPI/examples.html#modify-program-instructions) but when I list the MoveL parameters (dict) I only get the name. e.g. {'Name': 'MoveL 45', 'Type': 0} Is it possible to do this through a python script? Thanks in advance. RE: Modify MoveL to MoveJ-Jeremy-01-29-2021 Hi Alejandro, From the example you pointed to:
Code:
elif instruction_dict['Type'] == INS_TYPE_MOVE:
In the line:prog.setInstruction(ins_id, ins_name, ins_type, move_type, isjointtarget, pose, joints) you have the move_type. If you open the robolink.py (C:\RoboDK\Python), you can find these:
Code:
# Instruction types
Have a great day. Jeremy RE: Modify MoveL to MoveJ-AlejandroSeikiRobotics-02-01-2021 I was very close! But I didn't see it. It works perfectly. Thank you very much Jeremy and have a nice day. |