This free consulting project uses Aspose.CAD for .NET and allows you to save DWG to DXF using simple API calls.