RoboDK Forum
Checking License Status through API——主要table 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: Checking License Status through API (/Thread-Checking-License-Status-through-API)



Checking License Status through API-joebgold-03-09-2023

Is there a way to check if the License has expired or is about to expire through the API?


RE: Checking License Status through API-Chris-03-09-2023

Hi,

You can use License().
//www.sinclairbody.com/doc/en/PythonAPI/robodk.html#robodk.robolink.Robolink.License

from robodk import robolink # RoboDK API
从robodk进口robomath #机器人工具箱
RDK = robolink.Robolink()
print(RDK.License())

If a professional is activated in my pc:
your License type is returned.
('Professional (RoboDK)', 'SomeString')
('Educational (Chris Chung)', 'SomeString')

if a license with problems:
'No license' is returned.

('No license', 'SomeString')

I hope it can help you.