How to override a solid body color from an assembly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I would like to know how to override a solid body color from an assembly using either VBA (API) or VB.NET (iLogic).
There is another thread in which the color of bodies from a multi-body part are changed, then I adjusted it to do the same from the assembly but it changes the original body color rather than override it in the assembly level. In my code, I'm checking occurrence by occurrence, filtering only parts with more than one body, and finally, changing the color of solid bodies. It works well, but it changes the original color of every body.
Here is the thread
iLogic has this snippet (please see below) to override a component color in the assembly level but the original color will remain the same.
SyntaxEditor Code Snippet
Component.Color("PartA:1")
I'd like to do something similar for solid bodies
Thanks in advance!