Sub-subassembly apperance color
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
Is it possible to change the appearance of color in a sub-subassembly or part in a subassembly from the main assembly?
Everything is in the attached image, and I'm also including the code that I thought would handle it. I tried updating the document, but unfortunately, it didn't work.
czarny = "Czarny" szary = "Ciemnoszara" niebieski = "Niebieska — farba ścienna — lśniąca" ocynkowana = "Jasnoszara" Select Case KOLOR_BLACHY_BOCZNEJ Case = "Czarny (RAL 9005)" kolor = czarny Case = "Szary (RAL 7001)" kolor = szary Case = "Ocynkowana" kolor = ocynkowana Case = "Niebieski (RAL 5010)" kolor = niebieski End Select Logger.Info(kolor) Component.Color("Obrzeże Środek:1") = kolor 'part in sub subassembly Component.Color("RAMA1") = kolor 'sub subassembly InventorVb.DocumentUpdate() iLogicVb.UpdateWhenDone = True
Has anyone ever had this problem and solved it?
Additionally, I created a separate assembly with 2 subassemblies, and there is the possibility to change the color there. However, when I change the color, turn off the assembly, and turn it on again, I lose the ability to change the color. The color names are definitely available in the library because if I enter an incorrect name, I get an error.
@ EDIT
Additionally, when I change the color in the following way:
Component.Color("RAMA1") = "Czarny"
The color does not change in the main assembly view. However, if I open the RAMA1 assembly, the color is as I expected.