This free consulting project uses Aspose.CAD to save DWG file as DXF. In this utility project we will load one of our DWG files (Line.dwg) using Aspose.CAD for .NET API and will then be saving that as DXF file Line.dxf) using simple API calls.
Install latest API version from Nuget: In order to use the sample project, you need to install the latest availble version of Aspose.CAD for .NET from NUGET.
Set License File: It's advised that you must have a valid license file before using the application. In case you do not have one, you can still use the trial version of API (It limits the API usage features) but suggested approach is to use the API with license. You can buy our product license or may request a Free trial license to evaluate the API with complete features on your end.
Set the path for DWG file: The application is a simple console based application where you will be required to set the path for source DWG file. In this example, we have placed the source DWG file (Line.dwg) in the Debug folder. You can use any location as per your requirements.
Set the path for Target DXF file: You need to set the path and name of desired DXF file as per your convenience. In this sample project, we have set the name of DXF file as Line.dxf and placed that in the Debug folder. You can use any location as per your requirements.
Converting loaded DWG to DXF file: Once you have loaded the source file, you nned simple API calls to save the loaded DWG as DXF. It has been eleborated in the example code. You can please also check the doccumentation link, Convert DWG Drawings to DXF.
If you have any questions about Aspose APIs, please feel free to post your query in Aspose file format APIs Forums.
Also, you can keep in touch with the latest developments in file format APIs offered by Aspose at our Blog.
I want to create/build an application to convert DWG to DXF: github.com/aspose-free-consulting/projects/issues/69