Inventor General Discussion

Inventor General Discussion

Reply
Distinguished Contributor
cadcamm99
Posts: 160
Registered: ‎04-12-2005
Message 1 of 2 (830 Views)

Color change with iLogic

830 Views, 1 Replies
06-27-2012 01:40 PM

I am using Inventor 2012:  I have a table with different part numbers. I want to create an iLogic rule to change the color of second solid body in my part for a specific part number.

 

This is what I did.

 

If iProperties.Value("Project", "Part Number") = "F22111796" Then
 Feature.Color("plastic")= "Gray"
ElseIf iProperties.Value("Project", "Part Number") = "F22111796V" Then
 Feature.Color("plastic")= "Gray (Dark)"
ElseIf iProperties.Value("Project", "Part Number") = "F22111796N" Then
 Feature.Color("plastic")= "Gray (Light)"
Else
 Feature.Color("plastic")="Gray"
End If

 

However it does not change the color of the second solid body when I make the part number active. Any ideas?

*Expert Elite*
Curtis_Waguespack
Posts: 2,955
Registered: ‎03-08-2006
Message 2 of 2 (822 Views)

Re: Color change with iLogic

06-27-2012 03:26 PM in reply to: cadcamm99

Hi cadcamm99,

 

It works fine for me. I'd check to see if you have a feature color override or solid color override that is causing an issue. Attached is a test file for you to compare.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com




  solution.png  Did you find this reply helpful ? If so please use the Accept as Solution or  Kudos button below.





Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.