Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AddPoints() function from API producing error
I'm trying to use the AddPoints() function from the API to add points to an object in my station. I have a list of points that were in a 1XN array where each element was a x,y,z coordinate. I used a loop to put the coordinates in a 3XN matrix since that is what the AddPoints() function accepts, but I'm getting an error from the script stating "points must be a 3XN or 6XN list or matrix". I have attached the error message and Python script.

This is the most updated Python script. I can't delete the old one

Attached Files Thumbnail(s)

.py (Size: 5.02 KB / Downloads: 53)
.rdk   TEST_coordinatetrans.rdk (Size: 3.25 MB / Downloads: 92)
.py (Size: 4.85 KB / Downloads: 68)
You can use RDK.AddPoints(POINTS, object_curbe, False, 0) directly.
Find useful information about RoboDK and its features by visiting our Online Documentation and by watching tutorials on our YouTube Channel.

Users browsing this thread:
1 Guest(s)