09-14-2020
03:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
09-14-2020
03:38 AM
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?
Solved! Go to Solution.
09-14-2020
03:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
09-14-2020
03:55 AM
Hi @atomic.lex
Try this ![]()
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)
Jhoel Forshav
Download my free Inventor Addin - Hole Projector
LinkedIn | Ideas | Contributions | Blog posts | Website