Create a curve
1. Click
Part Library and then, in the
Pipeline group, click
Curve. The
Cylinder+Torus->3D Curve dialog box opens.
2. Click Wire Part and select the torus.
3. Click From Part and select the cylinder.
4. Click
OK 
to complete the operation.