iMate suppress

iMate suppress

danijel.radenkovic
Collaborator Collaborator
640 Views
4 Replies
Message 1 of 5

iMate suppress

danijel.radenkovic
Collaborator
Collaborator

Hello,
I have an assembly which I need to show in two positions. First position has "1st_position" mate active ("2nd_position" mate is not active), Second position has 2nd_position mate active, 1st_position mate non active. It is showed on the image below.
I tried it through iAssembly to switch between two positions and to immediately update assembly. I hope someone can help me.

 

 

IMAGE.png

Inventor 2018/Windows 10 x64
If this information was helpful, please consider marking it as an Accepted Solution by using the Accept as Solution. Kudos are also gladly accepted.
0 Likes
Accepted solutions (1)
641 Views
4 Replies
Replies (4)
Message 2 of 5

mitchjuenemann
Contributor
Contributor
Accepted solution

Add a user multi-variable parameter that you want to flip the contraint switch in called "Position" with the values of 1 and 2.

 

Rename the constraints you wish to toggle on and off to 1st_position:1 and 2nd_position:1.

 

Add this rule to your assembly you wish to switch contraints on and off.

 

Make a Form if you wish or simply toggle the multi variable parameter you created in you parameters tab on 1 or 2 and you should be able to watch your assembly change position.

 

If Position = 1 Then
Constraint.IsActive("Your Assembly Name with Constraints on it:1", "1st_position:1") = True
Constraint.IsActive("Your Assembly Name with Constraints on it:1", "2nd_position:1") = False
Else If Position = 2 Then
Constraint.IsActive("Your Assembly Name with Constraints on it:1", "1st_position:1") = False
Constraint.IsActive("Your Assembly Name with Constraints on it:1", "2nd_position:1") = True
End If

 

Hope this helps...

MItch

Message 3 of 5

danijel.radenkovic
Collaborator
Collaborator

Hello Mitch,

 

Thank you very much for the answer. It helped and now works fine. I have conected multi-value parameter with form for the swithing between two values.

 

I thought that I can do it through iassembly but I didn't succeed.

 

Best regards and thank you very much.

Danijel

Inventor 2018/Windows 10 x64
If this information was helpful, please consider marking it as an Accepted Solution by using the Accept as Solution. Kudos are also gladly accepted.
0 Likes
Message 4 of 5

mitchjuenemann
Contributor
Contributor

I think you could have just used positional representation and achieved the same result. 

0 Likes
Message 5 of 5

danijel.radenkovic
Collaborator
Collaborator

Your solution works fine 🙂

 

Regards

Danijel

Inventor 2018/Windows 10 x64
If this information was helpful, please consider marking it as an Accepted Solution by using the Accept as Solution. Kudos are also gladly accepted.
0 Likes