<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to Access Raster Preview/Thumbnail Stored in DWG in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/3006680#M77177</link>
    <description />
    <pubDate>Thu, 28 Apr 2011 18:18:53 GMT</pubDate>
    <dc:creator>Mikko</dc:creator>
    <dc:date>2011-04-28T18:18:53Z</dc:date>
    <item>
      <title>How to Access Raster Preview/Thumbnail Stored in DWG</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/2057278#M77166</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
Can anyone tell how to access the raster preview image stored in the dwg &lt;BR /&gt;
from a C# .NET 2.0 program?&lt;BR /&gt;
&lt;BR /&gt;
Warren</description>
      <pubDate>Thu, 30 Aug 2007 15:00:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/2057278#M77166</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-08-30T15:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to Access Raster Preview/Thumbnail Stored in DWG</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/2057279#M77167</link>
      <description>http://discussion.autodesk.com/search.jspa?numResults=25&amp;amp;inputEntered=true&amp;amp;source=thread-threaded%7C152&amp;amp;q=Thumbnail&amp;amp;objID=f152</description>
      <pubDate>Fri, 31 Aug 2007 09:51:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/2057279#M77167</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-08-31T09:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to Access Raster Preview/Thumbnail Stored in DWG</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/2057280#M77168</link>
      <description>I read most of these posts. Thank you very much! I am trying to get a &lt;BR /&gt;
decent size thumbnail image of 640x480 pixels strictly through the Shell &lt;BR /&gt;
(without using any ARX or other programs) with the following code:&lt;BR /&gt;
&lt;BR /&gt;
SIZE sz = new SIZE();&lt;BR /&gt;
sz.cx = desiredSize.Width;    // set to 640&lt;BR /&gt;
sz.cy = desiredSize.Height;    // set to 480&lt;BR /&gt;
StringBuilder location = new StringBuilder(260, 260);&lt;BR /&gt;
int priority = 0;&lt;BR /&gt;
int requestedColorDepth = 32;&lt;BR /&gt;
EIEIFLAG flags = EIEIFLAG.IEIFLAG_ASPECT | EIEIFLAG.IEIFLAG_SCREEN | &lt;BR /&gt;
EIEIFLAG.IEIFLAG_ORIGSIZE | EIEIFLAG.IEIFLAG_QUALITY;&lt;BR /&gt;
int uFlags = (int)flags;&lt;BR /&gt;
&lt;BR /&gt;
extractImage.GetLocation(&lt;BR /&gt;
     location,&lt;BR /&gt;
     location.Capacity,&lt;BR /&gt;
     ref priority,&lt;BR /&gt;
     ref sz,&lt;BR /&gt;
     requestedColorDepth,&lt;BR /&gt;
     ref uFlags);&lt;BR /&gt;
&lt;BR /&gt;
extractImage.Extract(out hBmp);&lt;BR /&gt;
if (hBmp != IntPtr.Zero)&lt;BR /&gt;
{&lt;BR /&gt;
     // create the image object:&lt;BR /&gt;
     thumbNail = System.Drawing.Bitmap.FromHbitmap(hBmp);&lt;BR /&gt;
     // is thumbNail owned by the Bitmap?&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
thumbNail.Save (@"c:\temp\wan.jpg", ImageFormat.Jpeg);&lt;BR /&gt;
&lt;BR /&gt;
Marshal.ReleaseComObject(extractImage);&lt;BR /&gt;
extractImage = null;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
My question is can I specify to AutoCAD through IExtractImage to give me &lt;BR /&gt;
a true thumbnail of 640x480 pixels? The image I get back is 640x480, &lt;BR /&gt;
however, it looks like it has been presumably scaled up from a smaller &lt;BR /&gt;
image (see 'Thumbnail from DWG.jpg). I guess you could argue to scale up &lt;BR /&gt;
the image to the desired resolution, but the quality then suffers.  If I &lt;BR /&gt;
run the same code on a generic jpg, the Shell will give me a true &lt;BR /&gt;
640x480 thumbnail (see attached 'Thumbnail from JPG.jpg').&lt;BR /&gt;
&lt;BR /&gt;
Thank you,&lt;BR /&gt;
Warren&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Alexander Rivilis wrote:&lt;BR /&gt;
&amp;gt; http://discussion.autodesk.com/search.jspa?numResults=25&amp;amp;inputEntered=true&amp;amp;source=thread-threaded%7C152&amp;amp;q=Thumbnail&amp;amp;objID=f152</description>
      <pubDate>Tue, 04 Sep 2007 16:12:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/2057280#M77168</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-09-04T16:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to Access Raster Preview/Thumbnail Stored in DWG</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/2057281#M77169</link>
      <description>From ObjectARX SDK Documents:&lt;BR /&gt;
The image size varies up to a maximum size no larger than 256 x 188 pixels.</description>
      <pubDate>Tue, 04 Sep 2007 18:31:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/2057281#M77169</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-09-04T18:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Access Raster Preview/Thumbnail Stored in DWG</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/2057282#M77170</link>
      <description>The thumbnail image that you access via the&lt;BR /&gt;
shell or via any other API is stored in the drawing&lt;BR /&gt;
file, and is generated when the file is saved, and &lt;BR /&gt;
hence, has a fixed size.&lt;BR /&gt;
&lt;BR /&gt;
IOW, the thumbnail image generation is not&lt;BR /&gt;
dynamic, so you can't specify any size you want,&lt;BR /&gt;
you're basically stuck with the size it is saved&lt;BR /&gt;
as, and any other size you get will be the result&lt;BR /&gt;
of resampling of that stored image.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2008&lt;BR /&gt;
Supporting AutoCAD 2000 through 2008&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"Warren Newhauser" &lt;WARREN&gt; wrote in message news:5709950@discussion.autodesk.com...&lt;BR /&gt;
I read most of these posts. Thank you very much! I am trying to get a &lt;BR /&gt;
decent size thumbnail image of 640x480 pixels strictly through the Shell &lt;BR /&gt;
(without using any ARX or other programs) with the following code:&lt;BR /&gt;
&lt;BR /&gt;
SIZE sz = new SIZE();&lt;BR /&gt;
sz.cx = desiredSize.Width;    // set to 640&lt;BR /&gt;
sz.cy = desiredSize.Height;    // set to 480&lt;BR /&gt;
StringBuilder location = new StringBuilder(260, 260);&lt;BR /&gt;
int priority = 0;&lt;BR /&gt;
int requestedColorDepth = 32;&lt;BR /&gt;
EIEIFLAG flags = EIEIFLAG.IEIFLAG_ASPECT | EIEIFLAG.IEIF&lt;BR /&gt;
LAG_SCREEN | &lt;BR /&gt;
EIEIFLAG.IEIFLAG_ORIGSIZE | EIEIFLAG.IEIFLAG_QUALITY;&lt;BR /&gt;
int uFlags = (int)flags;&lt;BR /&gt;
&lt;BR /&gt;
extractImage.GetLocation(&lt;BR /&gt;
     location,&lt;BR /&gt;
     location.Capacity,&lt;BR /&gt;
     ref priority,&lt;BR /&gt;
     ref sz,&lt;BR /&gt;
     requestedColorDepth,&lt;BR /&gt;
     ref uFlags);&lt;BR /&gt;
&lt;BR /&gt;
extractImage.Extract(out hBmp);&lt;BR /&gt;
if (hBmp != IntPtr.Zero)&lt;BR /&gt;
{&lt;BR /&gt;
     // create the image object:&lt;BR /&gt;
     thumbNail = System.Drawing.Bitmap.FromHbitmap(hBmp);&lt;BR /&gt;
     // is thumbNail owned by the Bitmap?&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
thumbNail.Save (@"c:\temp\wan.jpg", ImageFormat.Jpe&lt;BR /&gt;
g);&lt;BR /&gt;
&lt;BR /&gt;
Marshal.ReleaseComObject(extractImage);&lt;BR /&gt;
extractImage = null;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
My question is can I specify to AutoCAD through IExtractImage to give me &lt;BR /&gt;
a true thumbnail of 640x480 pixels? The image I get back is 640x480, &lt;BR /&gt;
however, it looks like it has been presumably scaled up from a smaller &lt;BR /&gt;
image (see 'Thumbnail from DWG.jpg). I guess you could argue to scale up &lt;BR /&gt;
the image to the desired resolution, but the quality then suffers.  If I &lt;BR /&gt;
run the same code on a generic jpg, the Shell will give&lt;BR /&gt;
 me a true &lt;BR /&gt;
640x480 thumbnail (see attached 'Thumbnail from JPG.jpg').&lt;BR /&gt;
&lt;BR /&gt;
Thank you,&lt;BR /&gt;
Warren&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Alexander Rivilis wrote:&lt;BR /&gt;
&amp;gt; http://discussion.autodesk.com/search.jspa?numResults=25&amp;amp;inputEntered=true&amp;amp;source=thread-threaded%7C152&amp;amp;q=Thumbnail&amp;amp;objID=f152&lt;/WARREN&gt;</description>
      <pubDate>Tue, 04 Sep 2007 18:41:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/2057282#M77170</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-09-04T18:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to Access Raster Preview/Thumbnail Stored in DWG</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/2057283#M77171</link>
      <description>Part of the problem is that you are referring to 640x480 as a "thumbnail". That's a LARGE thumbnail. The intention of a thumbnail is to present a small visualization. To get what you want, you need to plot the dwg to a raster format.</description>
      <pubDate>Tue, 04 Sep 2007 19:57:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/2057283#M77171</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2007-09-04T19:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to Access Raster Preview/Thumbnail Stored in DWG</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/2057284#M77172</link>
      <description>Agree 100% - I am looking for an arbitrary size preview without having &lt;BR /&gt;
to write/execute any code to get it, but that does not look doable.&lt;BR /&gt;
&lt;BR /&gt;
Thank you for your help.&lt;BR /&gt;
Ed_Jobe wrote:&lt;BR /&gt;
&amp;gt; Part of the problem is that you are referring to 640x480 as a "thumbnail". That's a LARGE thumbnail. The intention of a thumbnail is to present a small visualization. To get what you want, you need to plot the dwg to a raster format.</description>
      <pubDate>Tue, 04 Sep 2007 22:43:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/2057284#M77172</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-09-04T22:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to Access Raster Preview/Thumbnail Stored in DWG</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/2057285#M77173</link>
      <description>With a few extra minutes on my hands, I've looked at a few&lt;BR /&gt;
examples on this thumbnail shell stuff and found them a bit&lt;BR /&gt;
overwhelming for what I need.  Not wanting to  implement &lt;BR /&gt;
every little nuance of the Shell API, I've somewhat shortened&lt;BR /&gt;
the code, became brain dead and am left with this ERROR:&lt;BR /&gt;
&lt;BR /&gt;
Attempted to read or write protected memory. This is often an &lt;BR /&gt;
indication that other memory is corrupt.  &lt;BR /&gt;
&lt;BR /&gt;
Just wondering if anybody can see the problem????  I don't think&lt;BR /&gt;
this happened with that VBaccelerator C# code.  Here's the VB code&lt;BR /&gt;
I'm using.  Thanks.&lt;BR /&gt;
&lt;BR /&gt;
======= Windows Form with Button and PictureBox&lt;BR /&gt;
&lt;BR /&gt;
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;BR /&gt;
Dim img As Image = ThumOne.CADImage("c:\temp\tryme.dwg")&lt;BR /&gt;
If Not img Is Nothing Then&lt;BR /&gt;
PictureBox1.Image = img&lt;BR /&gt;
End If&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
======= ThumOne Class&lt;BR /&gt;
&lt;BR /&gt;
Imports System&lt;BR /&gt;
Imports System.Text&lt;BR /&gt;
Imports System.Runtime.InteropServices&lt;BR /&gt;
&lt;BR /&gt;
Public Class ThumOne&lt;BR /&gt;
&lt;BR /&gt;
Public Structure SIZE&lt;BR /&gt;
Public wide As Integer&lt;BR /&gt;
Public tall As Integer&lt;BR /&gt;
End Structure&lt;BR /&gt;
&lt;BR /&gt;
&amp;lt;GuidAttribute("BB2E617C-0920-11d1-9A0B-00C04FC2D6C1"), _&lt;BR /&gt;
InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)&amp;gt; _&lt;BR /&gt;
Public Interface IExtractImage&lt;BR /&gt;
Sub GetLocation(ByVal pszPathBuffer As IntPtr, ByVal cch As Integer, ByRef pdwPriority As Integer, ByRef prgSize As SIZE, ByVal dwRecClrDepth As Integer, ByRef pdwFlags As Integer)&lt;BR /&gt;
Sub Extract(ByRef phBmpThumbnail As IntPtr)&lt;BR /&gt;
End Interface&lt;BR /&gt;
&lt;BR /&gt;
&amp;lt;GuidAttribute("000214E6-0000-0000-C000-000000000046"), _&lt;BR /&gt;
InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)&amp;gt; _&lt;BR /&gt;
Public Interface IShellFolder&lt;BR /&gt;
Sub ParseDisplayName(ByVal hWnd As IntPtr, ByVal pbc As IntPtr, ByVal pszDisplayName As String, ByRef pchEaten As Integer, ByRef ppidl As System.IntPtr, ByRef pdwAttributes As Integer)&lt;BR /&gt;
Sub EnumObjects(ByVal hwndOwner As IntPtr, &amp;lt;MarshalAs(UnmanagedType.U4)&amp;gt; ByVal grfFlags As Integer, &amp;lt;Out()&amp;gt; ByRef ppenumIDList As IntPtr)&lt;BR /&gt;
Sub BindToObject(ByVal pidl As IntPtr, ByVal pbcReserved As IntPtr, ByRef riid As Guid, ByRef ppvOut As IShellFolder)&lt;BR /&gt;
Sub BindToStorage(ByVal pidl As IntPtr, ByVal pbcReserved As IntPtr, ByRef riid As Guid, &amp;lt;Out()&amp;gt; ByVal ppvObj As IntPtr)&lt;BR /&gt;
&amp;lt;PreserveSig()&amp;gt; _&lt;BR /&gt;
Function CompareIDs(ByVal lParam As IntPtr, ByVal pidl1 As IntPtr, ByVal pidl2 As IntPtr) As Integer&lt;BR /&gt;
Sub CreateViewObject(ByVal hwndOwner As IntPtr, ByRef riid As Guid, ByVal ppvOut As Object)&lt;BR /&gt;
Sub GetAttributesOf(ByVal cidl As Integer, ByVal apidl As IntPtr, &amp;lt;MarshalAs(UnmanagedType.U4)&amp;gt; ByRef rgfInOut As Integer)&lt;BR /&gt;
Sub GetUIObjectOf(ByVal hwndOwner As IntPtr, ByVal cidl As Integer, ByRef apidl As IntPtr, ByRef riid As Guid, &amp;lt;Out()&amp;gt; ByVal prgfInOut As Integer, &amp;lt;Out(), MarshalAs(UnmanagedType.IUnknown)&amp;gt; ByRef ppvOut As Object)&lt;BR /&gt;
End Interface&lt;BR /&gt;
&lt;BR /&gt;
&amp;lt;DllImport("shell32.dll", CharSet:=CharSet.Auto)&amp;gt; _&lt;BR /&gt;
Public Shared Function SHGetDesktopFolder(&amp;lt;Out()&amp;gt; ByRef ppshf As IShellFolder) As Integer&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
Public Shared Function CADImage(ByVal cadFileName As String) As Image&lt;BR /&gt;
Dim DirShell = New Guid("000214E6-0000-0000-C000-000000000046")&lt;BR /&gt;
Dim FileShell = New Guid("BB2E617C-0920-11d1-9A0B-00C04FC2D6C1")&lt;BR /&gt;
Dim cadDir As IShellFolder = Nothing&lt;BR /&gt;
Dim dwgFile As IShellFolder = Nothing&lt;BR /&gt;
Dim xImg As IExtractImage = Nothing&lt;BR /&gt;
Dim pidl As IntPtr&lt;BR /&gt;
Dim filePidl As IntPtr&lt;BR /&gt;
Dim NameDir = IO.Path.GetDirectoryName(cadFileName)&lt;BR /&gt;
Dim CADName = IO.Path.GetFileName(cadFileName)&lt;BR /&gt;
Dim img As IntPtr&lt;BR /&gt;
Dim imgLoc As IntPtr&lt;BR /&gt;
Dim size As SIZE&lt;BR /&gt;
size.wide = 100&lt;BR /&gt;
size.tall = 75&lt;BR /&gt;
SHGetDesktopFolder(cadDir)&lt;BR /&gt;
cadDir.ParseDisplayName(IntPtr.Zero, IntPtr.Zero, NameDir, 0, pidl, 0)&lt;BR /&gt;
cadDir.BindToObject(pidl, IntPtr.Zero, DirShell, dwgFile)&lt;BR /&gt;
dwgFile.ParseDisplayName(IntPtr.Zero, IntPtr.Zero, CADName, 0, filePidl, 0)&lt;BR /&gt;
dwgFile.GetUIObjectOf(IntPtr.Zero, 1, filePidl, FileShell, 0, xImg)&lt;BR /&gt;
imgLoc = Marshal.AllocHGlobal(0)&lt;BR /&gt;
xImg.GetLocation(imgLoc, 260, 0, size, 2, 0)&lt;BR /&gt;
xImg.Extract(img)&lt;BR /&gt;
Try&lt;BR /&gt;
CADImage = Image.FromHbitmap(img)&lt;BR /&gt;
Catch&lt;BR /&gt;
CADImage = Nothing&lt;BR /&gt;
Finally&lt;BR /&gt;
Marshal.FreeHGlobal(imgLoc)&lt;BR /&gt;
Marshal.FreeCoTaskMem(pidl)&lt;BR /&gt;
Marshal.FreeCoTaskMem(filePidl)&lt;BR /&gt;
End Try&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
End Class</description>
      <pubDate>Mon, 10 Sep 2007 14:52:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/2057285#M77173</guid>
      <dc:creator>Mikko</dc:creator>
      <dc:date>2007-09-10T14:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to Access Raster Preview/Thumbnail Stored in DWG</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/2057286#M77174</link>
      <description>This line should read:&lt;BR /&gt;
&lt;BR /&gt;
imgLoc = Marshal.AllocHGlobal(260)&lt;BR /&gt;
&lt;BR /&gt;
just in case anyone uses this.</description>
      <pubDate>Tue, 11 Sep 2007 19:24:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/2057286#M77174</guid>
      <dc:creator>Mikko</dc:creator>
      <dc:date>2007-09-11T19:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to Access Raster Preview/Thumbnail Stored in DWG</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/2057287#M77175</link>
      <description>Hi Mikko,&lt;BR /&gt;
I ran into the same problem, I was wondering if you found the answer.&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
Raul</description>
      <pubDate>Fri, 04 Apr 2008 19:56:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/2057287#M77175</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-04T19:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to Access Raster Preview/Thumbnail Stored in DWG</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/3006232#M77176</link>
      <description>&lt;P&gt;I have successfully used this code for many years (since Inventor 2009) to view .ipt thumbnails on a form.&lt;/P&gt;&lt;P&gt;However, after I installed Inventor 2012 the code has stopped working.&lt;/P&gt;&lt;P&gt;If I start Inventor 2011 and run the code, the thumbnail is extracted successfully.&lt;/P&gt;&lt;P&gt;If I start Inventor 2012 and run the code, it fails at the xImg.Extract(img) line (see attachment).&lt;/P&gt;&lt;P&gt;If I again start Inventor 2011 and run the code, the thumbnail is extracted successfully.&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;Are there anyone who can help in solving this?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2011 14:07:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/3006232#M77176</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-28T14:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to Access Raster Preview/Thumbnail Stored in DWG</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/3006680#M77177</link>
      <description />
      <pubDate>Thu, 28 Apr 2011 18:18:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/3006680#M77177</guid>
      <dc:creator>Mikko</dc:creator>
      <dc:date>2011-04-28T18:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to Access Raster Preview/Thumbnail Stored in DWG</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/3011572#M77178</link>
      <description>&lt;P&gt;Guess what happened when I tried this on .dwg files?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OK, I'll tell you, I got previews.&lt;/P&gt;&lt;P&gt;Dwg files were save as 2000 or 2007 file type.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2011 20:15:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-access-raster-preview-thumbnail-stored-in-dwg/m-p/3011572#M77178</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-03T20:15:25Z</dc:date>
    </item>
  </channel>
</rss>

