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

RunProgram deprecated or not?

#1
This entry for RunProgram() calls it deprecated:
https://robodk.com/doc/en/PythonAPI/robo...RunProgram

But this one doesn't:
https://robodk.com/doc/en/PythonAPI/robo...RunProgram

Are they both deprecated? 

More generally, there seem to be quite a few method names duplicated across different classes, sometimes taking different args, and the only way I can see to tell them apart is to mouse over the permalink, which I just discovered.

Knowing the class is actually pretty important in general; only the permalink hints that one is a method on a Robolink object and the other on an Item object.
#2
This is a good point. The robolink.py file implements both the Robolink and Item classes. We are adding a note to split the robolink.py file as 2 separate sections (one for Robolink and one for Item).
#3
Done.

You might need to clear your cache:
https://robodk.com/doc/en/PythonAPI/robo...obolink-py
Please read the Forum Guidelines before posting!
Find useful information about RoboDK by visiting our Online Documentation.
#4
Thanks! That's an improvement. Although the way I tend to use the docs is to ctrl-f for a method name. So once it jumps me down to a method, I guess I could scroll up and see whether I'm in the robolink or Item section, although tbh mousing over the permalink is actually faster. I guess what I'd need is for the classname to be given for each method. So instead of having two "RunProgram" entries, one would be "robolink.RunProgram(...)" and the other would be "Item.RunProgram(...)"

For example, in the python standard library https://docs.python.org/3/library/multip...aredMemory lists the class name and not just the method name.
  




Users browsing this thread:
1 Guest(s)