Rhino surface to curve. you can try the old script below.