ObjectARX

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

AcCmColor <-> AcCmEntityColor

273 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: 678
Registered: ‎08-06-2002
Message 2 of 3 (267 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: 146
Registered: ‎12-07-2009
Message 3 of 3 (264 Views)

Re: AcCmColor <-> AcCmEntityColor

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

Perfect!

Thank you very much.

--
Jonathan
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!