Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Help - Animate Cam by using normal constraints instead of transitional?

7 REPLIES 7
Reply
Message 1 of 8
Anonymous
181 Views, 7 Replies

Help - Animate Cam by using normal constraints instead of transitional?

See CF for JPG.

I tried to "drive constrain" this Cam by using a transitional constrain, but
that doesn't work in this case.
It moves partily over the curved part but not the full 360.

Now I was thinking, is it possible to constrain "A" to "B1" en use 4
equations to determine the distance between the 2 centers according to alfa
(angle)?
So as alfa changes, the centerdistance changes. In that case you could drive
constrain alfa.
Or is this something that could/should be done in VBA?

This 4 equations are:
1 - 0-75 degrees - Radius=160+90
2 - 75 -165 - R=160+90((160/90)*alfa-(160/2Pi)*sin(360*alfa))
3 - 165-270 - R=320+90
4 - 270-360 -R=160+90((160/90)*alfa-(160/2Pi)*sin(360*alfa))

I hope that you understand what I am trying to do.

Thanks.

Christian
7 REPLIES 7
Message 2 of 8
Anonymous
in reply to: Anonymous

Three ways to do this...

1. Use parameters equations as you are doing
2. Use VBA functions fired off parameters (I just wrote a tutorial on this,
see site for details)
3. Use Animator (see my site)

They are listed in the harder to easier order. Whichever you choose let me
know and I'll give you a hand.

--
Sean Dotson, PE
http://www.sdotson.com
Check the Inventor FAQ for most common questions
www.sdotson.com/faq.html
-----------------------------------------------------------------------
Message 3 of 8
Anonymous
in reply to: Anonymous

You really are quick. 🙂

1. How would I type it in? Can you give a little example??
2. I printed it out, will give it a look tomorrow.
3. I check that out too.

I am first trying no.1. Would be nice if you have somekind of example of how
to type in different formulas.

Thanks already.
Christian.
BTW Great site!



"Sean Dotson" schreef in bericht
news:34C41D058BAEB6F158D2870930902E11@in.WebX.maYIadrTaRb...
> Three ways to do this...
>
> 1. Use parameters equations as you are doing
> 2. Use VBA functions fired off parameters (I just wrote a tutorial on
this,
> see site for details)
> 3. Use Animator (see my site)
>
> They are listed in the harder to easier order. Whichever you choose let
me
> know and I'll give you a hand.
>
> --
> Sean Dotson, PE
> http://www.sdotson.com
> Check the Inventor FAQ for most common questions
> www.sdotson.com/faq.html
> -----------------------------------------------------------------------
>
>
Message 4 of 8
Anonymous
in reply to: Anonymous

"You really are quick"



Yea, Mr. Dotson is one of the fastest and most accurate answerslingers (gunslinger) this side of the Autodesk News Groups.



B-)



MechMan
Message 5 of 8
Anonymous
in reply to: Anonymous

The equations in parameters would get real ugly real fast. Assuming your
equations are correct you could write a VBA function in 1/10 of the time.
Here is a start

Public Function MyFunction(alpha As Double) As Double

If alpha >= 0 And alpha < 75 Then
MyFunction = 160 + 90
ElseIf alpha >= 75 And alpha < 165 Then
MyFunction = 160 + 90 * (160 / 90) * alpha - (160 / 2 * pi) * Sin(360 *
alpha)
Else if etc...
End If
End Function

Then your parameter woudl be

VBA:MyFunction(x) * 1 deg

where x is the alpha parameter

A few things to keep in mind. You need to remember that Inventor uses
internal units of radians. So does VB. Be sure to convert your alpha
angles into radians first. When you get the results back convert it back to
degrees.

This along with the tutorial should get you started. Report back if you
have any problems.

Hope this helps.
--
Sean Dotson, PE
http://www.sdotson.com
Check the Inventor FAQ for most common questions
www.sdotson.com/faq.html
-----------------------------------------------------------------------
"Christian Niemarkt" wrote in message
news:71B7040643C96ED2EBDFCC87F8CA2224@in.WebX.maYIadrTaRb...
> You really are quick. 🙂
>
> 1. How would I type it in? Can you give a little example??
> 2. I printed it out, will give it a look tomorrow.
> 3. I check that out too.
>
> I am first trying no.1. Would be nice if you have somekind of example of
how
> to type in different formulas.
>
> Thanks already.
> Christian.
> BTW Great site!
>
>
>
> "Sean Dotson" schreef in bericht
> news:34C41D058BAEB6F158D2870930902E11@in.WebX.maYIadrTaRb...
> > Three ways to do this...
> >
> > 1. Use parameters equations as you are doing
> > 2. Use VBA functions fired off parameters (I just wrote a tutorial on
> this,
> > see site for details)
> > 3. Use Animator (see my site)
> >
> > They are listed in the harder to easier order. Whichever you choose let
> me
> > know and I'll give you a hand.
> >
> > --
> > Sean Dotson, PE
> > http://www.sdotson.com
> > Check the Inventor FAQ for most common questions
> > www.sdotson.com/faq.html
> > -----------------------------------------------------------------------
> >
> >
>
>
Message 6 of 8
Anonymous
in reply to: Anonymous

See CF for an example using transitional constraints, the way to get it to
work is to pick the follower then the smallest rad on cam in this order.

--
Laurence,

Power is nothing without Control
---


"Christian Niemarkt" wrote in message
news:5B3AC33F781848C599C47E9E86F1D45F@in.WebX.maYIadrTaRb...
> See CF for JPG.
>
> I tried to "drive constrain" this Cam by using a transitional constrain,
but
> that doesn't work in this case.
> It moves partily over the curved part but not the full 360.
>
> Now I was thinking, is it possible to constrain "A" to "B1" en use 4
> equations to determine the distance between the 2 centers according to
alfa
> (angle)?
> So as alfa changes, the centerdistance changes. In that case you could
drive
> constrain alfa.
> Or is this something that could/should be done in VBA?
>
> This 4 equations are:
> 1 - 0-75 degrees - Radius=160+90
> 2 - 75 -165 -
R=160+90((160/90)*alfa-(160/2Pi)*sin(360*alfa))
> 3 - 165-270 - R=320+90
> 4 - 270-360 -R=160+90((160/90)*alfa-(160/2Pi)*sin(360*alfa))
>
> I hope that you understand what I am trying to do.
>
> Thanks.
>
> Christian
>
>
Message 7 of 8
Anonymous
in reply to: Anonymous

Yes, I tried that Laurence. It won't work in this case 😞


"Laurence Yeandle" schreef in bericht
news:D31DEEF58144E76655271FA6CF34CC1C@in.WebX.maYIadrTaRb...
> See CF for an example using transitional constraints, the way to get it to
> work is to pick the follower then the smallest rad on cam in this order.
>
> --
> Laurence,
>
> Power is nothing without Control
> ---
>
>
> "Christian Niemarkt" wrote in message
> news:5B3AC33F781848C599C47E9E86F1D45F@in.WebX.maYIadrTaRb...
> > See CF for JPG.
> >
> > I tried to "drive constrain" this Cam by using a transitional constrain,
> but
> > that doesn't work in this case.
> > It moves partily over the curved part but not the full 360.
> >
> > Now I was thinking, is it possible to constrain "A" to "B1" en use 4
> > equations to determine the distance between the 2 centers according to
> alfa
> > (angle)?
> > So as alfa changes, the centerdistance changes. In that case you could
> drive
> > constrain alfa.
> > Or is this something that could/should be done in VBA?
> >
> > This 4 equations are:
> > 1 - 0-75 degrees - Radius=160+90
> > 2 - 75 -165 -
> R=160+90((160/90)*alfa-(160/2Pi)*sin(360*alfa))
> > 3 - 165-270 - R=320+90
> > 4 -
70-360 -R=160+90((160/90)*alfa-(160/2Pi)*sin(360*alfa))
> >
> > I hope that you understand what I am trying to do.
> >
> > Thanks.
> >
> > Christian
> >
> >
>
>
Message 8 of 8
Anonymous
in reply to: Anonymous

Sean,

I take the files home this weekend and going to try the VBA way.

Is it also possible to use the same equations in animator? Or does this program "only" use coordinates?
It's a very nice program BTW.

Thanks for the help Sean.

Laurence,thanks for the example. I tried it that way before. But I think the problem of my cam is that it consist to many straight faces (in the curved section). The original design came from Autocad. Perhaps this is the problem.

Christian

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report