TheSwamp

Code Red => VB(A) => Topic started by: David Hall on January 09, 2007, 11:35:22 AM

Title: Update thumbnail on save
Post by: David Hall on January 09, 2007, 11:35:22 AM
Has anyone experienced the thumbnail reverting back to the dwg image icon instead of a thumbnail when using Thisdrawing.Save ?  If I save and close a dwg manually, it updates the thumbnail, but if I use code to do the same thing, I get no thumbnail.
Title: Re: Update thumbnail on save
Post by: Bryco on January 09, 2007, 12:12:03 PM
I think it always has. I've never attached the problem but perhaps you'll find an answer here.
http://discussion.autodesk.com/thread.jspa?messageID=4700196 (http://discussion.autodesk.com/thread.jspa?messageID=4700196)
Title: Re: Update thumbnail on save
Post by: Bryco on January 09, 2007, 01:06:42 PM
Using the imageview.cls the following sub worked fine on 2006
(Updated the piccy)

Sub check()

    Dim IV As ImageView
    Set IV = New ImageView
    Debug.Print IV.GetDrawingPreview(ThisDrawing.FullName)
    ThisDrawing.Close True

End Sub