Use Ilogic to change a View Representation

Use Ilogic to change a View Representation

Anonymous
Not applicable
772 Views
5 Replies
Message 1 of 6

Use Ilogic to change a View Representation

Anonymous
Not applicable

Hello,

Upfront sorry for my englisch, It's not my motherlanguage.

I try to use iLogics to change a View Rep. I've searched far and wide for some code to do that and found some things that individualy work. But when i make one rule for it it doesn't. 

In the attached file i test the situation. There is a red cube and yellow cilinder. By changing the ViewRep parameter, the visibility of the parts need to change to either the cube or cilinder, to the one that is selected, in the Condition view rep where in the master they stay invisible. And in the end the Master View rep needs to be active.

Can anyone help me with this please?

0 Likes
Accepted solutions (1)
773 Views
5 Replies
Replies (5)
Message 2 of 6

Yijiang.Cai
Autodesk
Autodesk

I find that the suppressed rule "Rule ViewRep" can get it done. Do you have any additional requirement here?

Thanks,
River Cai

Inventor Quality Assurance Team
Autodesk, Inc.
Email: River-Yijiang.Cai@autodesk.com
Message 3 of 6

Anonymous
Not applicable

Thanks for the fast reply. When i Run the suppressed "Rule ViewRep" i get the part visible in both Condition and Master View rep. This is a problem since the requirement is that the part is only visible in the Condition View rep.

0 Likes
Message 4 of 6

Yijiang.Cai
Autodesk
Autodesk

Please see the attached model, and switch the parameter "ViewRep" to see the result. Does it work for you?

Thanks,
River Cai

Inventor Quality Assurance Team
Autodesk, Inc.
Email: River-Yijiang.Cai@autodesk.com
Message 5 of 6

Anonymous
Not applicable

Yes. This works. But to switch to the option tot he right part and than back to master every time is not ideal and confusing for the end user. 

As i stated in my original post. The individual parts of the codes work, but when i put them together it doesn't. I tried to look up if i could put a delay in between the bits of code, but haven't find out if that is possible or not. 

0 Likes
Message 6 of 6

Anonymous
Not applicable
Accepted solution

I worked a litle futhur on your idea and have it working now. Having 3 codes to achieve this doens't matter luckly.

0 Likes