iLogic Appearance color won't apply

iLogic Appearance color won't apply

Anonymous
Not applicable
407 Views
2 Replies
Message 1 of 3

iLogic Appearance color won't apply

Anonymous
Not applicable

Hello,

 

I am dealing with a small problem in iLogic. I want to change the color of the part at different pressures. I tried the code below and it is sort of working.

 

Code color.PNG

When I run this code, and I change the pressure parameter, the icon in the picture below, which is inditcated with the red arrow, changes to the right color. That is good I guess. But the part stays at the same color. What can I do so the color of the part changes with the appearance color?

 

Kind regards.

 

Kleur.PNG

 

 

 

 

 

0 Likes
Accepted solutions (1)
408 Views
2 Replies
Replies (2)
Message 2 of 3

Lewis.Young
Collaborator
Collaborator
Accepted solution

Hello,

 

On the last line, remove "iLogicVb.UpdateWhenDone = True" and replace it with "InventorVb.DocumentUpdate()" 

 

Lewis Young
Windows 7 x64 - 32GB Ram
Intel Xeon E5-1620 v2 @ 3.70GHz
nVidia Quadro M2000 - 4GB
Inventor Professional 2017.3
Vault Basic 2017
3ds Max 2018

Message 3 of 3

Anonymous
Not applicable

Hello,

 

Thanks for your reply, it worked!