Script to export drawings to dxf - color error (converts black lines to white)

This is almost for sure because of the treatment of color 7 in Acad.
I can’t follow this discussion very well so I’ll back up a little.

  • In Acad, Color 7 is displayed as black when the viewport background is light and as white when the background is dark. Rhino has no such feature.

If you write Acad files with the Rhino DWG/DXF writer using color by AcadColorIndex, both black, color RGB(0,0,0) and white, RGB(255,255,255) in Rhino will be written as ACI 7. That will display as either black or white in Acad, depending on your background color.

If you want to export to Acad files and really control the black/white color, you can use RGB color definitions.

2 Likes