Making An .ipt Rule Run From An .iam

Making An .ipt Rule Run From An .iam

ASchlaack
Collaborator Collaborator
561 Views
2 Replies
Message 1 of 3

Making An .ipt Rule Run From An .iam

ASchlaack
Collaborator
Collaborator

I need a way to fire rule "Length" in part "Angle" when there is a parameter change in my assembly. How can I do this?

Thanks,
Aaron Schlaack
---------------------------------------------------------------------------------
Autodesk Inventor 2018
Dell Windows 8.1 64 bit Intel(R) Xeon(R) @ 3.50GHz 32GB Ram
0 Likes
Accepted solutions (1)
562 Views
2 Replies
Replies (2)
Message 2 of 3

rjay75
Collaborator
Collaborator
Accepted solution

You have two options depending on how your rules are written in the part.

 

In your assembly you can have a rule that responds to a parameter change. That rule can then change the part parameter  or run a rule. If the rule in the part is an internal rule written using the parameter name then it will automatically respond to a parameter change in the part. If the rule must be explicitly run then that can be done to.

 

From the assembly:

 

Run rule in subcomponent:

iLogicVb.RunRule("Angle", "Length")

 

Modify a parameter

Parameter("Angle", "length") = 2.0 in

 

 

 

 

Message 3 of 3

ASchlaack
Collaborator
Collaborator

Thank you, I used the first rule and it worked great!

Thanks,
Aaron Schlaack
---------------------------------------------------------------------------------
Autodesk Inventor 2018
Dell Windows 8.1 64 bit Intel(R) Xeon(R) @ 3.50GHz 32GB Ram
0 Likes