ssmithdigilab
Mechanical
- Oct 12, 2009
- 48
I want to control the length of a spring in an assembly by having that length related to the distance between two components (one static and one movable).
I remember back in my Pro/E days that I could create an equation that made the length of my helix equal to a measurement of the distance between the two components that the spring was between. Then when I moved one of the components the spring would compress/extend realistically.
Is something similar possible in SolidWorks? I have searched the site extensively and haven't found a solution to this exact problem.
For reference, I have created the spring by using the following method. I started by offsetting a plane from the right plane in the model. I then created a circle on the right plane to represent the OD of the spring. I then created a helix using this circle (Height and Revolution). Then I created a circle on the front plane for the profile. Next I swept the profile along the helix. Lastly I created an equation equating the length of the helix to the distance between the planes. Therefore, I can change the distance between the planes and my spring length updates nicely.
In my assembly I mated the right plane to the static component and mated the offset plane to the movable component. I would like to be able to drag the movable component and have the spring update either dynamically or upon rebuild. Unfortunately, once I mate the spring to the movable component, it no longer becomes movable.
Any help would be greatly appreciated.
I remember back in my Pro/E days that I could create an equation that made the length of my helix equal to a measurement of the distance between the two components that the spring was between. Then when I moved one of the components the spring would compress/extend realistically.
Is something similar possible in SolidWorks? I have searched the site extensively and haven't found a solution to this exact problem.
For reference, I have created the spring by using the following method. I started by offsetting a plane from the right plane in the model. I then created a circle on the right plane to represent the OD of the spring. I then created a helix using this circle (Height and Revolution). Then I created a circle on the front plane for the profile. Next I swept the profile along the helix. Lastly I created an equation equating the length of the helix to the distance between the planes. Therefore, I can change the distance between the planes and my spring length updates nicely.
In my assembly I mated the right plane to the static component and mated the offset plane to the movable component. I would like to be able to drag the movable component and have the spring update either dynamically or upon rebuild. Unfortunately, once I mate the spring to the movable component, it no longer becomes movable.
Any help would be greatly appreciated.