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

Access points from an item

#2
It is currently not possible to extract the points from an object.
Something you can do instead is to save it as a station parameter with getParam/setParam :
RDK.setParam('POINTS', str(POINTS))
Station parameters are saved together with the RDK file as strings.
然后,您可以后悔rieve the list back:
import json
POINTS = json.loads(RDK.Param())

Right now, what you can do with the points object is to create a "MillingProject" as if you wanted to drill through these points.

Example:
path_settings = RDK.AddMillingProject("AutoPointFollow settings")
prog, status = path_settings.setMillingParameters(part=object_points)
At this point, we may have to manually adjust the tool object or the reference frame if the robot can't follow the path.

Finally, we can simulate the create program if success:
prog.RunProgram()

You will find a sample macro attached that shows other ways of making the robot move along a list of points.


Attached Files
.py MoveRobotThroughLine.py(Size: 10.56 KB / Downloads: 1,905)


Messages In This Thread
Access points from an item - byTobias7- 01-11-2017, 11:01 AM
RE: Access points from an item - byRoboDK- 04-09-2017, 06:12 AM



Users browsing this thread:
1 Guest(s)