Please refer to SUR_SWEEP in Varkon' Programmers Manual In the manual should be added that dir not is allowed to be parallel to the curve tangents (dir - Controls the direction of the Y-axis, Default = plane normal)
Sample with straight line as spine
Sample with circle as spine
Sample with iso-parameter curves as spines
Execution of samples:
Download MBS code, put in mbs directory of an application, compile, start a job, create part sweep_ex_1, sweep_ex_2 and sweep_ex_3. For sweep_ex_1 create first a coordinate system.