Does anyone know how to create a collapsed helix?

I need to create a coil spring that has been collapsed for assembly.

SolidworksGeneral