You need to use the invisible platforms and ramp/end templates. Then join the spline points on the platform/template objects with suitable walls/platforms/roofs etc.

See the tutorial here:...