Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active December 29, 2021 19:34
Show Gist options
  • Save aspose-com-gists/e836590bf14ae7c350aeadb6d0c67526 to your computer and use it in GitHub Desktop.
Save aspose-com-gists/e836590bf14ae7c350aeadb6d0c67526 to your computer and use it in GitHub Desktop.
Convert DWG to DXF File Programmatically in C# .NET
// Specify paths for input and output files.
string inputDWG = "sample.dwg";
string outputDXF = "sample.dxf";
// Load the input DWG file
Image cadImage = Image.Load(inputDWG);
// Save output DXF file
cadImage.Save(outputDXF);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment