One thing to remember is that most compression springs are closed, that is there is a flat portion at either end. What I do is to create a curve by equation and calulate the z dimension from a graph. The equation in the curve looks like this:
/* For cylindrical coordinate system, enter parametric equation
/* in terms of t (which will vary from 0 to 1) for r, theta and z
/* For example: for a circle in x-y plane, centered at origin
/* and radius = 4, the parametric equations will be:
/*& ;nbs p; r = 4
/* theta = t * 360
/*& ;nbs p; z = 0
/*---------------------------------------------------------- ---------
R=(OD-WIRE)/2
THETA=TURNS*T*360
Z=evalgraph("SPRING",(T*TURNS))
In the graph I start with a little horizontal for the flat sectionat 1/2 the wire diafrom zero to .5 turns, from .5 to 1 turn I go from 1/2 wire diameter to 1 1/2 wire diameter to represent the closed coil, then I havea line to the other end where I have a similar construction. All the values in the graph and in the curve equations are controlled by dimensions in an outline sketch of the coil and the TURNS parameter I added. After the curve is created I create a VSS for the solid.