Put color for entity propblem?

Put color for entity propblem?

D_D_K
Advocate Advocate
435 Views
1 Reply
Message 1 of 2

Put color for entity propblem?

D_D_K
Advocate
Advocate

Hi,

Is there a direct way to initialize color for this type: IAcadAcCmColor.

 

I'm using this code but if i can't not access pEnt I wouldn't be able to use col.

 

IAcadAcCmColorPtr col;
h = pEnt->get_TrueColor(&col); //

col->SetRGB(125, 175, 235);

pEnt->put_TrueColor(col);

 

Thanks a lot.

 

 

0 Likes
Accepted solutions (1)
436 Views
1 Reply
Reply (1)
Message 2 of 2

D_D_K
Advocate
Advocate
Accepted solution

Hi,
that seems to be a registry issue causing my previous queries to fail, my problem has been fixed. 

Thanks you. 

0 Likes