Message 1 of 1
Inventor API Material Reading Issue

Not applicable
04-27-2021
05:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I have attached an Inventor 2019 assembly.
Loading the top-level assembly (_Fishing Rod Assembly.iam) gives incorrect colour for the part "Fishing Rod.ipt".
It looks like top-level assembly modifies the part colour which is not correct.
But if we load the part (Fishing Rod.ipt) individually we get the correct colour compared to Inventor View.
EG: Following is a sample code we use to read color
GetColor(CComPtr<RenderStyle> pRenderStyle)
{
if (pRenderStyle)
{
unsigned char Red, Green, Blue;
if (S_OK == pRenderStyle->GetDiffuseColor(&Red, &Green, &Blue))
{
}
Thanks
Sam