Message 1 of 2
save dwg by hand has thumbnail, but saveas side db by code, no thumbnai?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I read a side db , and save it, but there is no thumbnail created.
when i open the file by hand, after saving file, there is a new thumbnail shown in open dialog.
the following is my code, does't work
I find a link, maybe has solution, but i can not open it.
can anyone help me to paste the code to this post?
thanks.
using (Database dbInsert = new Database(false, true))
{
dbInsert.ReadDwgFile(sDwg, System.IO.FileShare.ReadWrite, true, null);
DatabaseExtension.Audit(dbInsert, true, true);
dbInsert.RetainOriginalThumbnailBitmap = true;
dbInsert.SaveAs(sDwg, true, DwgVersion.AC1027, dbInsert.SecurityParameters);
}