from Rhino.Geometry import NurbsSurface, Point3d
from scriptcontext import doc
surface = NurbsSurface.CreateFromCorners(
Point3d(5, 0, 0),
Point3d(5, 5, 5),
Point3d(0, 5, 0),
Point3d(0, 0, 0));
This seems to work only up to 5 points only. How can I do more than that? Or create a plane from lines works too, but what I found only script that makes user to pick curves to generate the plane. How to automate the selection without interruption?