Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trouble turning path display OFF from Python
#1
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")
#2
Here's how to hide paths from a program:

Code:
prog.setVisible(False)


See our documentation:
//www.sinclairbody.com/doc/en/PythonAPI/robo...setVisible
Please read theForum Guidelinesbefore posting!
Find useful information about RoboDK by visiting ourOnline Documentation.
#3
That worked beautifully!

Thank you Sam.




Users browsing this thread:
1 Guest(s)