VBA Document.Thumbnail does not work with VBA on Windows7-64 bit PC.

VBA Document.Thumbnail does not work with VBA on Windows7-64 bit PC.

Anonymous
Not applicable
1,051 Views
5 Replies
Message 1 of 6

VBA Document.Thumbnail does not work with VBA on Windows7-64 bit PC.

Anonymous
Not applicable

Historically I've used the following code to display an image of the document thumbnail in an image control.

Under Windows7 64 Bit OS it errors out.  Works fine under Windows7 32 bit. 

Any Help?

 

    Set oDoc = ThisApplication.Documents.ItemByName(FName)
    Set Image1.Picture = oDoc.Thumbnail
 

Thanks in Advance

0 Likes
1,052 Views
5 Replies
Replies (5)
Message 2 of 6

skyngu
Collaborator
Collaborator

in vba, thumbnail doesnt work under 64 bit. it is a known issue.

Autodesk Inventor Professional 2019
0 Likes
Message 3 of 6

Anonymous
Not applicable

Any work arounds?

0 Likes
Message 4 of 6

skyngu
Collaborator
Collaborator

use VB instead

Autodesk Inventor Professional 2019
0 Likes
Message 5 of 6

Anonymous
Not applicable

The applications I have written in VBA are large and numerous. 90% of them use the thumbnail.  This precludes re-writing them in VB program that manipulates Inventor through automation.

 

Hmmm.  Are you suggesting that I write a dll in VB or VB.NEt that takes the Inventor document as input and outputs a thumbnail image?

 

I'll look into it.  Hmmm perhaps an iLogic call?

0 Likes
Message 6 of 6

skyngu
Collaborator
Collaborator

this site will help you a little

 

http://modthemachine.typepad.com/my_weblog/2010/03/document-thumbnails-and-button-icons.html

Autodesk Inventor Professional 2019
0 Likes