ObjectARX

Reply
Distinguished Contributor
maisoui
Posts: 131
Registered: ‎12-07-2009
Message 1 of 3 (259 Views)
Accepted Solution

AcCmColor <-> AcCmEntityColor

259 Views, 2 Replies
10-09-2012 01:28 AM

Hi,

 

Is there a simple (or what is the best) way to convert AcCmEntityColor into AcCmColor and vice versa?

 

Regards,

Jonathan

 

--
Jonathan

You can use AcCmColor::setColor(AcCmEntityColor::color()) and AcCmColor::entityColor(), respectively.

Distinguished Mentor
owenwengerd
Posts: 635
Registered: ‎08-06-2002
Message 2 of 3 (253 Views)

Re: AcCmColor <-> AcCmEntityColor

10-09-2012 04:35 AM in reply to: maisoui

You can use AcCmColor::setColor(AcCmEntityColor::color()) and AcCmColor::entityColor(), respectively.

--
Owen Wengerd
ManuSoft
Distinguished Contributor
maisoui
Posts: 131
Registered: ‎12-07-2009
Message 3 of 3 (250 Views)

Re: AcCmColor <-> AcCmEntityColor

10-09-2012 05:07 AM in reply to: maisoui

Perfect!

Thank you very much.

--
Jonathan
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.