Message 1 of 10
How to get the value of default color in AutoCAD?
Not applicable
02-26-2014
03:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello
I want to iterate the entities in the drawing and find all intities, whose colour equals to default. How can I get value of default color?
I learned how to iterate the autocad data base.
Moreover I see, that class Entity has a ColorIndex field, but class Autodesk.AutoCAD.Colors.Color do not have a field like 'DefaultColor'.
I need a field or method, because user can set the color he wants. Default color - I mean exactly, the color will be printed like black on a paper.
(If it is possible to give answer with C#-code sample)
Thank you.