I have created a bolt, a nut and a spring, In the part stage the spring compresses and un compresses correctly, I then create an assembly with the bolt as the fixed feature. I have tried mating the spring to the bolt in various fashions and can do that ok....but that's where I get stuck. Because when I try to compress the spring it doesn't move. I entend to have the nut do a screw on type motion with a screw mate and I can do that ok as well but I don't know how to animate the spring into a compression uncompression stage....can you help?
SolidworksAssemblies
Check this video on How to Animate a spring
I have watched that tutorial many times and I get lost at the point after he makes the planes the same as the part. The video ( I think) says to first edit part. I get lost at what he is doing. did he already mate the parts ....or what did he mean by adding a relationship....I've tried editing the spring and adding relationships to the bolt but it doesn't prompt me to add coincidence or what ever perhaps you can explaing in a little more detail what he did....thanks
I managed to recreate this demo for you here are the files along with an avi file that shows it all working. I didn't spend a ton of time on making perfect threads and I just got stuff close for you. I did it over a break but at least this way you can pick a part the models and see what you need to fix with yours. Also you may be doing it right but you have to rebuild the model for it to show the changes that you made to the spring after you moved the bolt.
Got it .....Thanks a bunch
No problem glad you got it figured out.
Thanks Dustin for the details
Good job on this one.I have been wondering about this also. Thumbs up!
The files works perfect in SW 2015 but when i opened the parts individually, started a new assembly and added the mates listed, the spring doesn't compress. the bolt head passed right through the spring. btw i attempted to do this with my own parts but decided to use yours because i was having the same issue.
(sorry for replying to such an old thread)
Edit: It appears the spring doesn't just compress in your assembly. If i compress your assembly it updates the static spring part and my assembly all simultaneously.
Try this:
Dennis,
says you are using a future version. I'm using 2015 SP2.1
Here are some methods:
Animating a Spring
Re: Animating spring compression
Re: how do you animate/mate a spring
Elliptical Spring here by Mike
How to Animate a Spring here by Ben
Here is a method using equations:
Animating spring compression
Here is the method using a macro:
HOW TO ANIMATE A SPRING -1
HOW TO ANIMATE A SPRING -2
i think i *might* be able to grasp the in context thing, but it really isn't what i wanted as it seems you have to draw a new spring then and there within the assembly as opposed to drawing a spring and then adding it to the assembly. I have a spring drawn. I would like to have it be able to compress in an assembly. I don't care or need to animate the spring moving. Like in the sldasm i downloaded above, it just updates position on rebuild. I don't know anything about coding or complex equations. I'm pretty close to just making an alternate spring as a separate part permanently compressed. It's just frustrating that i can't get a new assembly to do like the above assembly using the exact same parts and mates.
Could you upload the files and one could check.
Also you can make series of sweep and then assemble them to make a cool spring with no in-context relation. Let me search that file.
i used the exact same files from the assembly posted by Dustin West above. I just opened the parts in a new assembly and added the same info (from what i was able to see). Which was basically all mates. I could find any equations or anything within the assembly.
Did you edited the spring and created the in-context relation with the bolt head? Check attached video.
and , I found a version I had not yet upgraded. This is in SWX2014 so it should work fine for you. Just go into the part file and change the spring dimensions to suit your current spring and in the assembly adjust the number of elements to give you the effect of the number of coils. This is just an example of how to get the visual affects of a spring moving in an assembly without a ton of recalculations.
I hope this helps.
Deepak, Thanks for the assistance but that mate makes my assembly over defined and unable to be solved. :S
Dennis,
I was able to adjust the diameter of the spring thickness but the diameter of the helix won't change. It seems to be the coincident mate. when i delete the mate i can change the diameter but it doesn't change the diameter of the helix upon rebuild, possibly due to the now-missing mate?
Edit: ahh that mate is tied to the spring thickness diameter. Still can't get the helix diameter to change.
Actually i figured it out I think. IS this what i should be adjusting?
Can you post the assembly and all related part files?
I'll do what I can to help. What are the wire diameter, mean coil diameter, number of coils?
1/16" for the wire diameter. 5/8" for the coil diameter. 5 coils. Thanks.
Deepak, all the part files come from the above post by Dustin West. I didn't save my attempt at the assembly since it didn't work and i only used the 3 parts given and 4 mates listed in the feature tree of Dustin's assembly. it was my attempt to try to learn by reverse engineering and I failed at it. lol
Then only thing you might have missed is the in-context relation.
You were on the right path. Try this.
that's what i had originally thought as well after you showed me the video but it won't allow me to make the mate. I'm wondering if the parts in his assembly are all linked together causing the same files to not work in a second assembly due to being linked to the first?
NO but you need to edit the sketch of the spring and add that relation.
That's perfect!
So both the diameters are changed in the first sketch and the coil number is changed by suppressing half-coils in the feature tree of the assembly? If I've got that right i'll be the happiest person in this building today.
Yes, regarding the changes you describe, but I also had to add a new coincident mate on the end coil to the last active coil.
Ok and i see exactly how you did that now. I greatly appreciate this! That's a worry I now no longer have to deal with. Thanks to you , and to as well, for returning to this ancient thread and trying to help me out.
Dennis below was able to help me out but I am still going to play around with this another time to see if I can get it to work. Thank you for your assistance.