Selective DXF export

Hi guys
I’m going to develop a simple RhinoCommon command to let user to select objects and export them to DXF.
After some searching in this forum, it looks like the only way to do that is to launch a script, as this sample code seems to confirm.
Please let me know if that can be done in a better/smarter way.
I wonder if there’s some way to choose the DXF export scheme used during export operations.
Thanks a lot!

Does this code work? How could another method be better/smarter in your opinion?

Note, when you script DXF export, you can specify the scheme to use.

– Dale