DWG export by specifying layers

I am looking to automate the export of dwg files using Dynamo in Civil3D.
Ideally, when exporting a dwg file, I would like to be able to specify the layers I want to export.
If you know of a package or node that can do this kind of work, I would like to know about it.

Export to what format?

I am planning to export it in .dwg.

It’s… already a DWG though. Do you mean ‘save as’ after you turn off the display of unwanted layers?

I guess we are divided on whether to turn it off or extract it, but you are right.