Is it possible tp animate the compression of a spring showing
its length reducing and the coils closing. I have tried changing
the helix length etc but is seems it shows only as one length
setting using the SW animation software. I am using SW Office
Premium.

12FirstPrevious## Attachments

How do do it ?

I will be soon putting a tutorial on animating spring.

Here the two methods I use to animate spring:

http://gupta9665.wordpress.com...to-animate-a-spring-1/

http://gupta9665.wordpress.com...to-animate-a-spring-2/

I saw how you animate spring in your Blog using Macro

You mention using Phil Sluder's trick of using equation & also combination of equations and Animator

How is it getting on ?

Is there any other simpler ways of doing it ?

Thanks

Frankie

Regarding animation check this one: Elliptical Spring here by Mike

or

How to Animate a Spring here by Ben

Are you looking for something like this?

## Attachments

If you guys are interested; here is a CORRECTED example of spring animation out of the July 2004 edition of SW Tips/Tricks " Adding Logic to Equations"

Thanks for the heads up, Deepak.

## Attachments

Please save my sanity, this is driving me crazy

After trying the first formula and getting nowhere I tried various other formulas but with no success so when I seen the second version I thought my worries were over but I keep getting an error message when entering the second equation.

Can you please tell me where I am going wrong.

Thanks,

Michael

Edit:

Sorted it

Had to suppress the 1st equation, enter the 2nd then unsuppress the 1st again

## Attachments

An equation controls a dimension in the part. The equation solved when the part is rebuilt. This is usually something like the length of a part is two times the width. Simple, if you do not change the width dimension, the length will not change upon subsequent rebuilds (which is a good thing).

This spring animation is based on the fact that every time you rebuild the part, the equations will solve and change the value of the dimensions to a new length. This is not your typical use of set of equations in SW. It would normally drive you crazy if your model did change every time you rebuilt it. But in this case we want it to change every time.

After verifying the 3 equations would not work in 2009, I suspected it had something to do with how old the routine was.

This newsletter and method was first conceived back in 2004. Back then the original 3 equations described in the SW Tips/Tricks newsletter worked as published.

I didn't have a copy of 2004 hanging around, but I did have 2006, so I tried it on that. The 3 equation version originally published wouldn't work (an error message indicating the dimension was already defined in a previous equation). SW seemed to have narrowed the scope of the equation environment by not allowing a programming type environment where it would solve one line at a time. I was able to nest equation 2 inside the IIF statement of equation 1 and get it to work. By nesting it only had one equation for each dimension.

So I saved the 2006 part, opened up in 2009 and it worked. But then when Michael added his post this morning, I started a new file in 2009, entered the equations, and got the same message Michael got. This message basically says we need to change the equations to avoid multiple rebuilds. 99% of the time you do not want the part to change every time we rebuild, but in this specific case that is precisely what we are trying to do. SW seemed to have narrowed the scope of the equation environment further by not allowing a set of equations that behave in this multiple rebuild manner. 2009 did let me bring in legacy equations from 2006 and allow them to work, but when I tried to create a new file with new equations, it will not work.

I am just a dumb engineer, but all I can conclude is SW is narrowing the scope of the equation environment. Back in 2004 it functioned more like a programming environment solving the first line, then the second, etc. In 2009 they want to help us write as set of equations to only define the static design intent of the part.

Therefore I have to also conclude that this set of equations will no longer work inside the SW 2009 equation environment, and a poor technique for the animation of a spring. I would imagine you could get these equations to somehow work using the API.

Got this working in 2009.

If you can't get it working by running head first at problem sneak round the back and kick it's a**e

The way round the problem was to enter the first equation then supress it before entering the second eqation, unsupress the the first equation and this will let the spring work as before every time you hit rebuild.

Michael

## Attachments

Cool. It works great.

Hi Dennis,

Can you show me step by step how you animate the spring using in-context/top down modeling without using equation ?

I too find using equations very complicated & too much work

Thanks for your help

Frankie

Hello Frankie,

I'm sorry for the late late response on this one, but do you still need a hand on those incontext springs?

I'll be more then happy to help you with a little "picture show" if you still need it.

Once again I'm sorry for the late response on this one!

/Dennis

Hi Dennis,

Yes, I still need it

Appreciate very much you if you can show me step by step how to do it, either by "picture show" or whatever way

Thank you once again

Frankie

Hello Frankie,

I'm trying to add you to friends. so that I might get in contact with you in a more direct way

Otherwise I've started the mini manual for the spring.

/Dennis