Inventor API Material Reading Issue

Inventor API Material Reading Issue

Anonymous
Not applicable
271 Views
0 Replies
Message 1 of 1

Inventor API Material Reading Issue

Anonymous
Not applicable

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

0 Likes
272 Views
0 Replies
Replies (0)