Cannot get RhinoScriptSyntax AddEdgeSrf() to work

I cannot get the RhinoScriptSyntax “AddEdgeSrf()” to work on two planar, concentric closed curves.

I copied the exact example ( and added the missing parenthese in the if statement) :

import rhinoscriptsyntax as rs
curves = rs.GetObjects("Select 2, 3, or 4 curves", rs.filter.curve)
if (curves and len(curves)>1 ): rs.AddEdgeSrf(curves)

No error messages, but also no surface added.

Rhino 8 (Version 8 (8.25.25314.11002, 2025-11-10))

Edit: AddPlanarSrf() seems to work fine. Am I missing something?

please post the geometry / 3dm file as well.
how many curves Do you select?

your script works with these curves:


crvs_forEdgeSrf_00.3dm (2.8 MB)

??

kind regards -tom

Hi Tom,

All curves are closed curves. I am fine with AddPlanarSrf(), I am just wondering why AddEdgeSrf() did not work. But seeing your example with multiple curves as edges I now understand, thanks.

Kind regards,

Max.

multiple offsets.3dm (2.3 MB)

this is not a curve-setup for edgeSrf
see help

cheers -tom