I am trying to Get Color in Catia using selection (VisProperties->GetRealColor(R,G,B)) but i am getting (255,255,255) always.
Code snip:
oApp = (INFITF::Application^)Marshal::GetActiveObject("CATIA.Application");
oDoc = (ProductStructureTypeLib:roductDocument^)oApp->ActiveDocument;
oCATSel = (INFITF::Selection^)oDoc->Selection;
oCATSel->Clear();
oCATSel->Add(item);
oCATSel->VisProperties->GetRealColor(R,G,B);
but it always return 255,255,255
but when i try to set color its working fine..
Code snip:
oApp = (INFITF::Application^)Marshal::GetActiveObject("CATIA.Application");
oDoc = (ProductStructureTypeLib:roductDocument^)oApp->ActiveDocument;
oCATSel = (INFITF::Selection^)oDoc->Selection;
oCATSel->Clear();
oCATSel->Add(item);
oCATSel->VisProperties->GetRealColor(R,G,B);
but it always return 255,255,255
but when i try to set color its working fine..