Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
Nov 19, 2020
Messages
4
Location
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..
 
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