Not able to create surface using rhinoscriptsyntax.AddSrfPtGrid()

I have 12 x 12 grid of points. I have the coordinates of all the 144 points. I am passing these information to rhinosciptsyntax.AddSrfPtGrid() but it is not creating the surface. Can anyone please help me on this?

@pascal

Can you post how far you got with the script and the point data?

Hi,
this works for me :

import rhinoscriptsyntax as rs
my_count = (2,2)
my_points = [(0,0,0),(1,0,0),(0,1,0),(1,1,0)]
rs.AddSrfPtGrid(my_count,my_points)

@pascal there is a typo in the documentation :slightly_smiling_face: - a mix of square and curly brackets where there should be normal vanilla brackets for a tuple

count ([number, number}): tuple of two numbers defining number of points in the u,v directions

should read :

count ((number, number)): tuple of two numbers defining number of points in the u,v directions