This really should have been posted as a discussion.
Adnan is trying to create the relation so the sketch below will wrap accurately around the cylinder.
What is -your- method to capture the cylinder diameter and specify the sketch relation so it can be wrapped, and later patterned 8x.
The idea is that you have a fully tangent serpentine wrap around the cylinder.
If just trying for a zig-zag,then datum curve by equation, using cylindrical coordinate system and driving the z value from a zig-zag graph based on the theta value.
Interesting thought. The radii at the ends are fixed to wrap around an insulator.
I added a document for my simple solution. This project can be taken to the n-th degree but for the most part, this is more than sufficient for most applications. This feature can be created within a few minutes with all the parameters either known or available through parameters.
Techniques - Heater Coil for Cylindrical Furnace
I love this color for glowing hot wires...