RoboDK Forum
Catching RoboDK messages- 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)
+——线程:捕捉RoboDK消息(/Thread-Catching-RoboDK-messages)



Catching RoboDK messages-abraham-bc-05-28-2020

Hello,

I would like to catch RoboDK messages from a python script.

In the following exemple, running the script on an empty station will result in a RoboDK message asking us to select a robot.

Code:
from robolink import * # RoboDK API
from robodk import * # Robot toolbox
RDK = Robolink()

settings = RDK.AddMillingProject('settings')
settings.setMachiningParameters()
print('this will only be printed once the RoboDK message has been taken care of')


I would like to be able to catch the RoboDK message and remove it from my python script.

是否有一个nyway to do so?

Thank you,

Abraham