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

AddPoints() function from API producing error

#1
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 TEST_make_matrix.py(Size: 5.02 KB / Downloads: 104)
.rdk TEST_coordinatetrans.rdk(尺寸:3.25 MB /下载:12022世界杯国家队名单46)
.py TEST_make_matrix_v2.py(Size: 4.85 KB / Downloads: 117)
#2
You can use RDK.AddPoints(POINTS, object_curbe, False, 0) directly.
Please read theForum Guidelinesbefore posting!
Find useful information about RoboDK by visiting ourOnline Documentation.




Users browsing this thread:
1 Guest(s)