Please let me know how to get the color index (AutoCAD ColorIndex # (ACI)) for any Entity?
I can able to get RGB and not ColorIndex.
Thanks
Thangaraj N
Getting the Value of ColorIndex for an Entity
Moderators: SDS, support, admin
Re: Getting the Value of ColorIndex for an Entity
Hello,
It is possible to convert an RGB color to AutoCAD color using a static method ColorToDXF, so when you get the RGB color value for some entity, you can easily retrieve an AutoCAD Color Index number for this color:
Mikhail
It is possible to convert an RGB color to AutoCAD color using a static method ColorToDXF, so when you get the RGB color value for some entity, you can easily retrieve an AutoCAD Color Index number for this color:
Code: Select all
int acIndex = CADImport.Export.SimpleCADtoDXF.DXFExport.ColorToDXF(cadEntity.Color);
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support