<?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: Create a thumbnail from a block inside AutoCAD in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/create-a-thumbnail-from-a-block-inside-autocad/m-p/3617820#M53310</link>
    <description>&lt;P&gt;If you mean a BlockTableRecord(BlockDefinition) then use BlockTableRecord.PreviewIcon property.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As Aubelec mentioned you might still need to use BLOCKICON if BlockTableRecord.PreviewIcon is null or needs to be updated&lt;/P&gt;</description>
    <pubDate>Wed, 12 Sep 2012 20:59:33 GMT</pubDate>
    <dc:creator>jeff</dc:creator>
    <dc:date>2012-09-12T20:59:33Z</dc:date>
    <item>
      <title>Create a thumbnail from a block inside AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-a-thumbnail-from-a-block-inside-autocad/m-p/3615376#M53307</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope someone could help me with this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm developing a tool similar to Insert command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All I need is to get the thumbnail (image preview) from&amp;nbsp;blocks in my drawing with vb.net application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm Using VS2010, and API.COM to develop this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found how to do this with an external dwg file, but in this case i want to show the thumbnail from blocks in a drawing opened.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2012 19:51:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-a-thumbnail-from-a-block-inside-autocad/m-p/3615376#M53307</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-11T19:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create a thumbnail from a block inside AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-a-thumbnail-from-a-block-inside-autocad/m-p/3616224#M53308</link>
      <description>&lt;P&gt;You can use the command : BLOCKICON&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it generate the preview of each BlockDef in your dwg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2012 10:23:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-a-thumbnail-from-a-block-inside-autocad/m-p/3616224#M53308</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-12T10:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create a thumbnail from a block inside AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-a-thumbnail-from-a-block-inside-autocad/m-p/3617726#M53309</link>
      <description>&lt;P&gt;Thanks for reply &lt;A target="_self" href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/574802"&gt;&lt;SPAN&gt;AubelecBE&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't know that command, but that command just&lt;FONT size="3"&gt; &lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;updates&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt; &lt;/FONT&gt;the thumbnails blocks, but I want to show the thumbnail in a pictureBox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could do it from a file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example suppose you have a dwg file calls&amp;nbsp;&amp;nbsp;&lt;FONT face="Consolas" size="2" color="#a31515"&gt;&lt;FONT face="Consolas" size="2" color="#a31515"&gt;&lt;FONT face="Consolas" size="2" color="#a31515"&gt;"c:\work\01.dwg"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a function call &amp;nbsp;GetThumbnail&amp;nbsp;&amp;nbsp;it creates a bmp Object and I can use that bmp to shows in a picturebox&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; bmp &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;Bitmap&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;bmp = dibujo.GetThumbnail(&lt;FONT face="Consolas" size="2" color="#a31515"&gt;&lt;FONT face="Consolas" size="2" color="#a31515"&gt;&lt;FONT face="Consolas" size="2" color="#a31515"&gt;"c:\work\01.dwg"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;True&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;pictureBox.Image = bmp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want to do it from the same dwg file that I have opened.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2012 20:04:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-a-thumbnail-from-a-block-inside-autocad/m-p/3617726#M53309</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-12T20:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create a thumbnail from a block inside AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-a-thumbnail-from-a-block-inside-autocad/m-p/3617820#M53310</link>
      <description>&lt;P&gt;If you mean a BlockTableRecord(BlockDefinition) then use BlockTableRecord.PreviewIcon property.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As Aubelec mentioned you might still need to use BLOCKICON if BlockTableRecord.PreviewIcon is null or needs to be updated&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2012 20:59:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-a-thumbnail-from-a-block-inside-autocad/m-p/3617820#M53310</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2012-09-12T20:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Create a thumbnail from a block inside AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-a-thumbnail-from-a-block-inside-autocad/m-p/3617846#M53311</link>
      <description>&lt;P&gt;Imports &lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;Autodesk.AutoCAD.DatabaseServices.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;BlockTableRecord&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The BlockTableRecord looks like it has the "GetThumbnailimage" property you need, if you look&amp;nbsp;an an example of how to iterate the block attriibutes property, and change it to get the thumbnail image for each block that should get you started in the right direction.&amp;nbsp;&amp;nbsp; You would need to define a bitmap for each block and then display the bitmap in a userform using a standard Visual Studio PictureBox control.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BlockTableRecord.PreviewIcon.GetThumbnailImage&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;**********************************&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Found the link below which looks even easier&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A target="_blank" href="http://www.theswamp.org/index.php?topic=32746.msg382467#msg382467"&gt;http://www.theswamp.org/index.php?topic=32746.msg382467#msg382467&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2012 21:29:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-a-thumbnail-from-a-block-inside-autocad/m-p/3617846#M53311</guid>
      <dc:creator>fxcastil</dc:creator>
      <dc:date>2012-09-12T21:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create a thumbnail from a block inside AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-a-thumbnail-from-a-block-inside-autocad/m-p/3619678#M53312</link>
      <description>&lt;P&gt;Hello every body.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been searching how to use BlockTableRecord, but I haven't found more information, but I think it is used with API.NET, and I'm just use API.COM because I have learned from VBA and it was easier than API.NET for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to create thumbnails using API.COM???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope his help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2012 22:59:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-a-thumbnail-from-a-block-inside-autocad/m-p/3619678#M53312</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-13T22:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create a thumbnail from a block inside AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-a-thumbnail-from-a-block-inside-autocad/m-p/3619686#M53313</link>
      <description>&lt;P&gt;Hello I want to share the way that &lt;SPAN&gt;momentarily I have solved how to get the thumbnail&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. I fill the combobox with all blocks in the drawing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. When I select the block I make a dwgFile using Wblock&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;thisdrawing.SendCommand(&lt;SPAN&gt;&lt;FONT face="Consolas" size="2" color="#a31515"&gt;&lt;FONT face="Consolas" size="2" color="#a31515"&gt;&lt;FONT face="Consolas" size="2" color="#a31515"&gt;"-wblock c:/work/01.dwg"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; &amp;amp; Chr(13) &amp;amp; nomBloque &amp;amp; Chr(13))&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. Call a function that makes a thumbnail and I keep it and show it in the pictureBox.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Inconvenience.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Each time that I select a block from the comboBox I have to&amp;nbsp;create a wblock and replace the file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is a little slow.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I hope their comments and help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2012 23:19:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-a-thumbnail-from-a-block-inside-autocad/m-p/3619686#M53313</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-13T23:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create a thumbnail from a block inside AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-a-thumbnail-from-a-block-inside-autocad/m-p/3621056#M53314</link>
      <description>&lt;P&gt;If you are using API.com try using dwgThumbnail.ocx , the preview looks better than a picture box.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Remane the file with an .OCX extension&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Search&amp;nbsp;&amp;nbsp;&amp;nbsp;dwgThumbnail&amp;nbsp; in the VBA section for more info.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2012 20:21:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-a-thumbnail-from-a-block-inside-autocad/m-p/3621056#M53314</guid>
      <dc:creator>fxcastil</dc:creator>
      <dc:date>2012-09-14T20:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create a thumbnail from a block inside AutoCAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/create-a-thumbnail-from-a-block-inside-autocad/m-p/3848916#M53315</link>
      <description>&lt;UL&gt;&lt;LI&gt;this&lt;A href="http://www.rasteredge.com/how-to/vb-net-imaging/thumbnail-creating/" target="_self"&gt; image programme&lt;/A&gt; creat high quality thumnail into their VB.NET application. i hope it helps.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 11 Apr 2013 05:42:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/create-a-thumbnail-from-a-block-inside-autocad/m-p/3848916#M53315</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-11T05:42:35Z</dc:date>
    </item>
  </channel>
</rss>

