Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Component.Color() set to default

atomic.lex
Enthusiast

Component.Color() set to default

atomic.lex
Enthusiast
Enthusiast

Hi all,

 

it's quiet simple to set a color of the component with ilogic:

Component.Color("iPartA:1") = "Green"

but how can I remove this color and set it back to dafault? 

0 Likes
Reply
Accepted solutions (1)
461 Views
1 Reply
Reply (1)

JhoelForshav
Mentor
Mentor
Accepted solution

Hi @atomic.lex 

Try this :slightly_smiling_face:

Component.InventorComponent("iPartA:1").AppearanceSourceType = AppearanceSourceTypeEnum.kPartAppearance

Or this:

Dim oAsm As AssemblyDocument = ThisDoc.Document
Dim oCol As ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection
oCol.Add(Component.InventorComponent("iPartA:1"))
oAsm.ComponentDefinition.ClearAppearanceOverrides(oCol)