Create curve on surface through two points with different heights

In order to create a sloped ramp, how do I create a curve on the surface that goes through the point at the bottom left to the elevated point on the right? This curve has to maintain the curvature of the basecurve in plan view (in short be on the surface), but should be a “lineair” curve between the points in elevation (so a continuous slope).
Don’t mind the units, this script is a simplified example :wink:

Curve through (16.2 KB)

CrvSrf (Curve On Surface)

Curve through (18.1 KB)

I forgot the ramp.

Curve through (16.9 KB)

1 Like

Thanks, that’s both a cleaner and easier solution than I expected!