How to deal with Error: object of type 'Guid' has no len()

Hi, I am a new learner on grasshopper python, when I was trying to get the length of points list , python claims the error of

Runtime error (TypeErrorException): object of type ‘Guid’ has no len()

Does it mean Guid list of points is not a list?
could anyone help to slove this issue?
thanks!

import rhinoscriptsyntax as rs

dpoints = List
dpindex = list(range(len(dpoints)))
print (dpindex)
print (dpoints)
DataOut = List
dpindex = dpindex

I assume that your dpoints is an external parameter, set this one to list access. You do not need to define dpoints in the script.

1 Like

THanks so much for your solution! I finally got it