Getting entity colors.

Getting entity colors.

Anonymous
Not applicable
409 Views
2 Replies
Message 1 of 3

Getting entity colors.

Anonymous
Not applicable
I would like to be able to move entities in a drawing based on the color of the entities to specific layers. I have everything working except how to get the color of an entity. Once I have the color of the entity my case statement can place it on the appropriate layer.

Can anyone help get me pointed in the right direction?

Thank you.

Scott
0 Likes
410 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
All entities have a "TrueColor" property. The value of this property is an AcCmColor object. Query this object to find the ColorMethod, ColorIndex, etc.
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks Tom. That did the trick.

Scott
0 Likes