05-09-2018, 12:23 PM
Hi, a few questions.. I'm currently writing python scripts by adding a python program item in the interface.
1. If I add a print or sys.stderr.write(), where does it go? I tried starting Robodk from a shell, but I don't see any output from my statements in the shell. I guess I could make a console with tkinter but I'd prefer something simpler if it exists.
2. I noticed references to console mode in the docs but I can't find documentation on using it. Is console mode a way to interact with Robodk through a python shell?
2. I tried usingRobolink.Selection()
but I get the error:'Robolink' object has no attribute 'Selection'
I notice in /Applications/RoboDK.app/Contents/Python there is ./robolink.py and also./robolink/robolink.py. The first file has Selection() and the second doesn't. What is the difference? and Why do my scripts find the version without Selection() when in my preferences I have Python folder path set to: /Applications/RoboDK.app/Contents/Python/ ?
Many thanks!!
julian
1. If I add a print or sys.stderr.write(), where does it go? I tried starting Robodk from a shell, but I don't see any output from my statements in the shell. I guess I could make a console with tkinter but I'd prefer something simpler if it exists.
2. I noticed references to console mode in the docs but I can't find documentation on using it. Is console mode a way to interact with Robodk through a python shell?
2. I tried usingRobolink.Selection()
but I get the error:'Robolink' object has no attribute 'Selection'
I notice in /Applications/RoboDK.app/Contents/Python there is ./robolink.py and also./robolink/robolink.py. The first file has Selection() and the second doesn't. What is the difference? and Why do my scripts find the version without Selection() when in my preferences I have Python folder path set to: /Applications/RoboDK.app/Contents/Python/ ?
Many thanks!!
julian