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

how to set an object as tool using the API

#1
I'm using both C# and Python API, AND I want to set an object in a station as a tool and attach it to a robot.
In RoboDK software i can select the robot clicking the right button and go to "attach Tool" and set an object as a tool, but I didn't find the same function available in API. 
I only found "AddTool" method, but it only creates a new tool without 3D graphics with a new name, but I want to set 3D object file imported as such.
Is there any API method available for it?
#2
To convert an object to a tool using the RoboDK API you can set the parent of an object to be a robot and then use the Convert parameter to a Tool.

Example:
Code:
tool.setParent(robot)
tool.setParam("Convert","Tool")
#3
Thank you very much!
  




Users browsing this thread:
2 Guest(s)