You can map selected SOLIDWORKS entities or colors to different layers or colors when exporting a SOLIDWORKS drawing to a .dxf or .dwg file. You create map files in the SOLIDWORKS software to assign selected items to designated layers or colors in the .dxf or .dwg file.
To create a map file: