Hi, I know this was a problem in the past, with saving the thumbnail on the saveas api. But, I thought they would fix this by now with 2011. Does anybody now how.
When I open one file it saves the thumbnail. But the next file don't save the thumbnail. any Ideas please.
Dim bm As New System.Drawing.Bitmap("C:\image.bmp")
file.Database.ThumbnailBitmap = bm
file.Database.SaveAs(file.Database.Filename, True, DwgVersion.AC1021, file.Database.SecurityParameters)
file = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.Open("c:\file1.dwg", False)
Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument = file
file.Database.ThumbnailBitmap = bm
file.Database.SaveAs(file.Database.Filename, True, DwgVersion.AC1021, file.Database.SecurityParameters)