RoboDK Forum
Trouble turning path display OFF from Python可打印版本

+- 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: Trouble turning path display OFF from Python (/Thread-Trouble-turning-path-display-OFF-from-Python)



Trouble turning path display OFF from Python-SamuelEStreamline-02-18-2022

Hello,

I am trying to use the item command:

program.setParam("PathDisplay", "None")

in Python code to turn off path display for a program but the paths are still being displayed.

Does anyone have a solution?

Code:
program = RDK.Item(name, ITEM_TYPE_PROGRAM)
program.setPoseFrame(frame)
program.setSpeed(fast)
program.MoveJ(approach_target)
program.setSpeed(slow)
program.MoveL (action_target)
program.ShowInstructions(True)
program.setParam("Tree", "Collapse")
program.setParam("PathDisplay", "None")



RE: Trouble turning path display OFF from Python-Sam-02-18-2022

Here's how to hide paths from a program:

Code:
prog.setVisible(False)


See our documentation:
//www.sinclairbody.com/doc/en/PythonAPI/robodk.html#robodk.robolink.Item.setVisible


RE: Trouble turning path display OFF from Python-SamuelEStreamline-02-20-2022

That worked beautifully!

Thank you Sam.