Create a Boundary Surface on top of wrap spline to serface and also follow spline on 2 axis

hello ,

i am trying to  Create a Boundary Surface on top of wrap spline to serface and also follow spline on 2 axis i tried several ways but either i ger error messages if try to select 1' he surface 2' the guide curve along x axis  3' the spline curves  (  like gate ) ,or if i select  2 of them i have weird shape that are not to the curves and leave gaps .splines are created in different  planes .

SolidworksApi/macros