Here is another way Using 3Dsketch
go to 3Dsketch
click on "Equation Driven Curve"
write the equations in the text file for z,y,and z as below
(I attached a text file)
exit sketch go to reference geometry and define a plane using curve an start point
sketch the profile you want to sweep
hit swept boss\base and choose the profile and path as below
in option choose "twist along path" and enter the parameter as in the picture
here it is!
and here is a rendering