Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Issue in GetRealColor() in catia v5 api

Status
Not open for further replies.

suri90

Computer
Nov 19, 2020
4
IN
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::productDocument^)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..
 
Replies continue below

Recommended for you

and when i am first setting color then query GetRealColor to getthe color its work fine (in this case too)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top