RoboDK Forum
How to get the status bar in a log or a variable- 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)
+——线程:如何让日志或状态栏a variable (/Thread-How-to-get-the-status-bar-in-a-log-or-a-variable)



How to get the status bar in a log or a variable-will27-07-21-2020

Hello all

I am wondering if I can retrieve the status bar message that includes for example:
program [name] finished (path length: xxxxx, program time: yyyy)

thanks


RE: Getting the status bar in a log or variable-Albert-07-25-2020

Yes, this is possible.

You can extract this information when you triggerUpdateon a program.


RE: How to get the status bar in a log or a variable-l.payer-01-31-2023

Is there a function to get the current text from the status bar outside of updating a program? For instance when i try to create a waypoint but its out of reach i would like to know that it wasn't possible.


RE: How to get the status bar in a log or a variable-Albert-01-31-2023

If you only want to check if a target is reachable you can do this:
Code:
reachable = target.setParam("Reachable")
if reachable:
print("Target is reachable")
else:
print("Target is not reachable")