macro

I want to build a coil model of the fabric, and now I know the curve equation of the central line of the coil is as follows:

x=0.075*cos(t)
y=(0.568*t)/pi
z=0.075*sin(t)      t=[pi/2,pi]

x=0.279*cos(t)+0.204
y=0.279*sin(t)*(sin(arctan(0.568/(pi*0.075))))+0.568
z=-0.279*sin(t)*(cos(arctan(0.568/(pi*0.075))))                   t=[0,pi]

x=0.075*cos(t)+0.408
y=(-0.568*t)/pi+0.568
z=0.075*sin(t)    t=[0,pi/2]

I hope that a good person can write a program to help me , set up the curve equation and use the lofting command to generate the volume. Three Curve equations must first combine Curve,The cross section area of the body is 0.068mm!

SolidworksApi/macros