Here is some information on the method: http://help.solidworks.com/2015/english/api/sldworksapi/SOLIDWORKS.Interop.sldworks~SOLIDWORKS.Interop.sldworks.IFeatureManager~InsertProtrusionSwept3.html
And an example in vba: http://help.solidworks.com/2015/english/api/sldworksapi/Get_Guide_Curves_in_Sweep_Feature_Example_VB.htm
I thought about the configurations except that I have too many parameters to change for each spring (I'll give you an example of a spring that I may have to make ;)):
- Outer diameter
- Wire diameter
- Number of coils (middle, upper and lower part of the spring)
- Upper and lower part, conical or not
- Height of the lower and upper parts
- Coincident elements of the spring
-...
My macro starts well with my inputbox and msgbox which draws my sketches, I only have trouble interpreting the scan function, and I went to the help but I can't understand how it works yet.
I had also tried some time ago the "assembly" spring like gt22, advised me but I need to be able to change the number of turns.