Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Machining Settings with python API

#1
In RoboDK UI, I can add many motion in Approach/Retract section. However, when I use python API, I found there can only add one motion into Approach/Retract section. Is it possible to add multiple motion in to  Approach/Retract section with python API?

I have already checked the example you provided on website and the file installed in local.
6. Examples — RoboDK API Documentation

Thanks.
Yen-Shuo


Attached Files
.py   Auto_calib_gen_x.py (Size: 6.39 KB / Downloads: 15)
.jpg   螢幕擷取畫面 2025-06-15 081331.jpg (Size: 144.69 KB / Downloads: 15)
#2
Yes, you can add multiple strategies for approach and retract using the RoboDK API to a robot machining project. Simply create a list of strategies using the semicolon symbol.

Example:
Code:
from robolink import *
RDK = Robolink()
m = RDK.Item('', ITEM_TYPE_MACHINING)
print(m.setParam("ApproachRetract", "Overlap 10;Normal 10;Tangent 20"))

You can find more information here, including the full list of accepted keywords:
https://robodk.com/forum/Thread-Setting-...hrough-API

And here:
https://robodk.com/doc/en/PythonAPI/exam...g-settings
  




Users browsing this thread:
1 Guest(s)