Export features colors to DXF

hello everyone,

many times I want to export some features colors to a DXF file, from the 3D model. for example,  for the following part, I want the DXF to look like that (the numbers in yellow, the color of the feature.)

this is what I do. I do an extruded cut, define its color to yellow. then I export the face or flat pattern, open in Draftsight, for example and change the color to yellow once again.

Is there a way to automate this process?

Thank you.

SolidworksImport export