Great, but don't expect it to work in 2011.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2011
http://www.acadxtabs.com
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");
"GPaolo" wrote in message
news:6380212@discussion.autodesk.com...
version Acad2009:
doc.LockDocument.Dispose()
doc.CloseAndSave(NomeDwg)
doc.Dispose()
I have replace it in Acad2010 version with :
'Dim bm As Bitmap = doc.CapturePreviewImage(128, 102) Not used
'doc.Database.ThumbnailBitmap() = bm
Not used
doc.Database.SaveAs(NomeDwg, True, AcDbs.DwgVersion.Current,
doc.Database.SecurityParameters)
doc.LockDocument.Dispose()
doc.CloseAndDiscard()
doc.Dispose()
***********************************************************
Now all work fine like in Acad2009 version.
Thank's Tony
"Tony Tanzillo" ha scritto nel messaggio
news:6379897@discussion.autodesk.com...
If you're using AutoCAD 2011, then don't bother with this method.
Autodesk apparently has broken this method an if you call it
AutoCAD will stop responding.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2011
http://www.acadxtabs.com
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");
wrote in message
news:6379790@discussion.autodesk.com...
Yes,i have see it and i have already try it,but when i save in Acad i
obtain a
thumbnail with white background color (in explore) when i create thumbnail
by
program with the function "CreatePreviewImage" i obtain a thumbnail
indefinite
and with black background color like my background color in Acad.
Any other suggestion?
Thanks and good week-end.
GPQ