RobotStudio event

Add-in using arrays

Hi,
 

In API help, Rspathprocedure example describes how to add a new path by creating six targets. This is okay for 6 targets. But if I have to use a path with say 200 points, this example wont help. I gues we have to use an array and use a for loop for that. Can anyone tell how to change the code if we have to use an array to specify the target locations?

 

Let's say, the coordinates are stored in three separate variables in form of an array.

 

Thanks and Regards,

Pradeep Kumar

Comments