Thumbnail

Thumbnail

Anonymous
Not applicable
338 Views
4 Replies
Message 1 of 5

Thumbnail

Anonymous
Not applicable
Hi,

I tried DwgThumbnail.ocx and ThumbnailViewer.dll they function good (AutoCAD 2004 .dwg and Inventor 10 .idw) but are two separate components. I tried also DSOleFile (2.1) but it doesn't function with idw and dwg files.
How are the Thumbnails in idw stored. Where can I get some information about the store location of thumbnails in the idw or some code to combine the dwg and the idw thumbnail in one component?
0 Likes
339 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
For Inventor, the source code for the ThumbnailViewer.dll can be found at:
C:\Program Files\Autodesk\Inventor
2008\SDK\Tools\Users\ThumbnailView\Source. This shows how to the use the
Microsoft APIs to access the thumbnail even though it is recommended that
you use the Inventor API to access this information.

So, you can use that same code and build an ActiveX control to display the
thumbnail for Inventor files. The same control can be programmed to retrieve
the thumbnail for dwg files, like what the DwgThumbnail.ocx does. But, I'm
not familiar with how to access the thumbnail for dwg files.

I hope this can get you started in the right direction.

-Venkatesh Thiyagarajan.

wrote in message news:5787541@discussion.autodesk.com...
Hi,

I tried DwgThumbnail.ocx and ThumbnailViewer.dll they function good (AutoCAD
2004 .dwg and Inventor 10 .idw) but are two separate components. I tried
also DSOleFile (2.1) but it doesn't function with idw and dwg files.
How are the Thumbnails in idw stored. Where can I get some information about
the store location of thumbnails in the idw or some code to combine the dwg
and the idw thumbnail in one component?
0 Likes
Message 3 of 5

Mikko
Advocate
Advocate
I posted a bit of VB code awhile back that allows you to view thumbnails that
might be a bit more user friendly then the C++ code shown.

http://discussion.autodesk.com/thread.jspa?messageID=5710253 at the very bottom.

In the initial posting I had an error. I posted the fix a day later.
0 Likes
Message 4 of 5

Anonymous
Not applicable
Venkatesh Thiyagarajan and Mikko, thank you very mutch
I will try both C++ and VB code.
For the beginning I resolved my problem by redirecting the bitmap from the dwgThumbnail.ocx (set to hidden) to the image.picture used with the ThumbnailViewer.dll.
0 Likes
Message 5 of 5

Anonymous
Not applicable
Hi,
I tried the ThumbnailView from Inventor SDK with VS 2003 and it works very well.
I maked a new code just for testing, but the new code work only with the original GUID from SDK-code.
My question is: what the Inventor { 3d38de39-0588-4c14-bb37-18fd5dd31c7} GUID is?
0 Likes