Setting Multiple Approach/Retract options through API- 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: Setting Multiple Approach/Retract options through API (/Thread-Setting-Multiple-Approach-Retract-options-through-API) |
Setting Multiple Approach/Retract options through API-joebgold-03-30-2021 Hello RoboDK, I am making use of the API through C# and am trying to set multiple retract options. The setParams("Retract", ...) allows me to set the parameters for the first retract but I cannot find any examples of how to add a second retract as can be done through the UI. Bascially, I need to have an Overlap retract and then a Normal retract for our system to function correctly. Can you let me know if this is possible and how to accomplish this with the API? RE: Setting Multiple Approach/Retract options through API-Albert-03-30-2021 We just updated RoboDK to support adding multiple approach/retract movement types using the API. Make sure to update RoboDK to the latest version (Windows 64 bit only). You should simply separate the movement types with the semicolon character. For example:
Code:
from robolink import *
RE: Setting Multiple Approach/Retract options through API-joebgold-03-30-2021 Hey Albert, Thank you for the information. I will update and check. Will the other versions of RoboDK also get this update? We are currently using Windows but are hoping to switch to the Linux version that can run on the Jetson Xavier so will need this feature on that as well. RE: Setting Multiple Approach/Retract options through API-Albert-03-30-2021 Yes, we'll update other platforms as well with the release of RoboDK 5.3 but it will take a few days. RE: Setting Multiple Approach/Retract options through API-Albert-09-15-2023 Just for reference, you can use the following keywords using the API to apply a specific approach/retract strategy that corresponds to the approach/retract strategy visible in the dropdown menu of a robot machining project (in the same order):
You can use the following parameters:
|