Inventor General Discussion

Reply
Member
RikVerhagen
Posts: 3
Registered: ‎06-04-2013
Message 1 of 6 (315 Views)

iLogic update color of a derived part

315 Views, 5 Replies
06-04-2013 07:16 AM

Hi,

 

I'm running an iLogic based model where I have a technical housing with 2 cover parts on top.

The first cover part is the basic part.

I use iLogic to assign a RAL-color to several parts in the assembly, also to that cover. The color is assigned to several features of the cover part.

 

The second cover part is almost identical to the first one.

So my first feature in the second cover part is a derived part of the 1st cover. I derived all the bodies.

 

Now here comes the problem.

When I'm in my assembly and I pick a RAL-color in my created customization form, the RAL-color only changes in the 1st cover part (the original), but it doesn't change in the second cover part, the derived body.

 

But....

when I manually open the 2nd cover part, and I right click on the derived feature and click on 'Edit Derived Part' ; the new color shows up immediately!

 

So, my question is if there is a rule for iLogic to update the color automatically?

 

Well, I hope I'm clear :smileyindifferent:

Mentor
tsreagan
Posts: 239
Registered: ‎07-02-2012
Message 2 of 6 (302 Views)

Re: iLogic update color of a derived part

06-04-2013 10:01 AM in reply to: RikVerhagen

You have two things to look at here.

 

1.  you may want inventor update lines in your rule.

 

RuleParametersOutput()'Outputs parameters - use before updaters below if needed.
InventorVb.DocumentUpdate()'updates the document & view
ThisApplication.ActiveView.Update()'updates the view only

 

2. you may be coloring the component itself, and not the occurance of the component (whos rep may be different in the assembly than it is within the part)

 

Getting derived parts to manually update, requires editing the derive feature and playing with the checkbox in the shot below. If you still have problems, there may be an iLogic parameter releated to the check box, I am unsure.

 

derived comp color.jpg

 

T.S.

 

Distinguished Mentor
pcrawley
Posts: 675
Registered: ‎05-23-2002
Message 3 of 6 (292 Views)

Re: iLogic update color of a derived part

06-04-2013 11:07 AM in reply to: RikVerhagen

Hi.  You don't mention which version of Inventor you are using, but the "Use color override from source component" has been a bit of an issue for a while - especially in 2013.  

 

I can't remember the exact history, but I think in R13 SP1 it got broken (or fixed depending on your point of view), causing the behaviour you are describing.  The "Being Invetive" blog published a registry fix - see http://beinginventive.typepad.com/being-inventive/2011/09/default-setting-for-the-option-use-color-o...

 

If you studied the "What's New" for Inventor 2014, you'll notice this behaviour has been addressed in the Derived part dialog box.  Once set, it remains set for life (or until you un-set it!).  The tickbox really belongs in the "Application Options" because there are so many other ways to derive parts - but that's an argument to be raised again in the next beta.

 

Peter

Peter
Member
RikVerhagen
Posts: 3
Registered: ‎06-04-2013
Message 4 of 6 (275 Views)

Re: iLogic update color of a derived part

06-05-2013 01:49 AM in reply to: pcrawley

Thanks for the tips so far.

I'm using Inventor Pro 2014.

 

The option "Use color override from source component" was already active; the update rule unfortunately doesn't make any difference.

 

To make it more clear, I added a screenshot of the case.

Mentor
tsreagan
Posts: 239
Registered: ‎07-02-2012
Message 5 of 6 (267 Views)

Re: iLogic update color of a derived part

06-05-2013 06:07 AM in reply to: RikVerhagen

Yeah,  you used to have to uncheck and recheck that box to get it to update.

I can't remember, if you do it once, wether it fixes it permanently for that part or not, I would try that and see.

 

I would search iLogic for the code item related to that box,  there may be a fix there somewhere.

 

T.S.

Member
RikVerhagen
Posts: 3
Registered: ‎06-04-2013
Message 6 of 6 (251 Views)

Re: iLogic update color of a derived part

06-07-2013 04:28 AM in reply to: RikVerhagen

Unfortunately, it doesn't work :smileysad:

 

Maybe some other option....

Now I'm defining color to features in a multiple body part. Is it also posibile to assign color to a specific body in that part? Maybe that works better with the derived function?

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube