Hi,
I have DXF files from external Software.
All Entities of this DXF are in Model Space.
All Entities are in RGB Colors. Also Black (index 7) colors are RGB 0,0,0
Most users have a Black (Model Space) background.
So you don't see the RGB 0,0,0 entities.
What I need:
In this DXF I want to Select all entities by "RGB color"
and convert them to the corresponding Index Color: (I onlywant to convert first 7 index colors)
e.g.
RGB Color 255,0,0 --> Index Color 1
RGB Color 255,255,0 --> Index Color 2
RGB Color 0,255,0 --> Index Color 3
RGB Color 0,255,255 --> Index Color 4
RGB Color 255,0,255 --> Index Color 5
RGB Color 0,0,255 --> Index Color 6
RGB Color 0,0,0 --> Index Color 7
I know that in AutoCAD I can select entities by RGB Color with (ssget "x" '((420 . Int number)))
But I work for this project with BricsCAD, and there is no DXF 420 option.
For now I use the (ssget "x" '((62 . Index Number))).
This works to get Index Colors 1-6
RGB 0,0,0 -->Black (7) however is difficult. I Have to use Index Color 18 to select all RGB 0,0,0 entities.
But officially color 18 corresponds with RGB 76,0,0
So there is the possibility that both RGB 76,0,0 & RGB 0,0,0 are converted to index 7, where only RGB 0,0,0 is needed.
Is there another way to select entities by truecolor?
Greetzzz,
Gerben