Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active March 16, 2022 08:19
Show Gist options
  • Save aspose-com-gists/4fc6e207959198fd83ac9f4769448e4d to your computer and use it in GitHub Desktop.
Save aspose-com-gists/4fc6e207959198fd83ac9f4769448e4d to your computer and use it in GitHub Desktop.
Convert DWG to DWF Programmatically in C# .NET
// Load the input DWG file
Image image = Image.Load("sample.dwg");
// Cast the Image class object to CadImage type
CadImage cad = (CadImage)image;
// Save output DWF CAD file
cad.Save(dataDir + "sample.dwf");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment