04-09-2017, 06:12 AM
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.
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.