Code: Select all
void SaveFile()
{
CADImage cadImage = CADImage.CreateImageByExtension(selectFile.FileName);
cadImage.LoadFromFile(selectFile.FileName);
CADtoDWG.SaveAsDWG(cadImage, Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "output.dwg"));
}
When I call this function, the following error is presented:
It's a shame, because the library has some great tools - But I cannot save the file. Is there a known issue around saving .DWG files?The type initializer for 'CADImport.Export.CADExportFrame' threw an exception.