Does Solidworks have the ability to compress springs in a moving assembly, with limits on the overall length and the compressed length?
Take a look at this thread and see if it is what you are looking for.
Compressing a spring
Check this out. I found it on a post from Deepak a while ago and it was a big help to me on a project.
Retrieving data ...