I forgot but it is only possible to export DWGs with linked documents.
For DWFx, NWC and IFC, it is necessary to open Revit files in the background.
One document :
Export DWFx from document.dyn (20.4 KB)
Several documents:
Export DWFx from severals documents.dyn (24.9 KB)