We create assemblies where components colors are meaningful. Up to SW2011, we had no problem applying a color to the components of an assembly and obtaining what we asked for through the API.
Unfortunately, since SW2011 PR1, all our components have a black color.
What we noticed is that if we try to change the color through SW's UI, the desired color is never obtained. Only after deleting all the material information of a component that we can through the UI of SW apply new colors to the said component.
It seems as if the API call to apply to a component is corrupt. Is the implementation of the API different since 2011 ?
We did an interesting test : We generated an assembly under 2011 where all the colors were properly displayed and opened that assembly under SW2011.
All the components are black.
You can find attached the assembly that seems ok under 2010 but not so ok under 2011.
Best Regards
Omar Msaaf
SolidworksSolidworks 2011 Beta