To export colored triangle mesh to DXF file format, I have used mesh geometry dxfio as a base code. It can export an indiced triangles easily (ASCII file).
I have upd