RunProgram deprecated or not?- Printable Version +- RoboDK Forum (//www.sinclairbody.com/forum) +-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN) + - - -论坛:RoboDK错误(//www.sinclairbody.com/forum/Forum-RoboDK-bugs) +--- Thread: RunProgram deprecated or not? (/Thread-RunProgram-deprecated-or-not) |
RunProgram deprecated or not?-j_cso-12-05-2022 This entry for RunProgram() calls it deprecated: //www.sinclairbody.com/doc/en/PythonAPI/robodk.html#robodk.robolink.Item.RunProgram But this one doesn't: //www.sinclairbody.com/doc/en/PythonAPI/robodk.html#robodk.robolink.Robolink.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. RE: RunProgram deprecated or not?-Albert-12-05-2022 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). RE: RunProgram deprecated or not?-Sam-12-13-2022 Done. You might need to clear your cache: //www.sinclairbody.com/doc/en/PythonAPI/robodk.html#robolink-py RE: RunProgram deprecated or not?-j_cso-12-16-2022 谢谢!这是一个即兴表演ement. 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 libraryhttps://docs.python.org/3/library/multiprocessing.shared_memory.html#multiprocessing.shared_memory.SharedMemorylists the class name and not just the method name. |