<?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 Attach image from VB.NET to AutoCad in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/attach-image-from-vb-net-to-autocad/m-p/3296033#M57586</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have just started to programming VB.NET with AutoCad but can´t find any information about how to attach a image from a userform commandbuton into AutoCad. I have programming in VBA before but can´t find any solution for inserting pictures in VB.NET. Is it possible to use the "imageattach" with attributes? or -image command? Or should I use Rasterimage?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want a image (*.jpg*) file to appear in AutoCad when I press the Commandbutton in my Form.&lt;/P&gt;&lt;P&gt;I hope you understand what I mean. And excuse,if my english is bad!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jan 2012 18:20:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-01-17T18:20:42Z</dc:date>
    <item>
      <title>Attach image from VB.NET to AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/attach-image-from-vb-net-to-autocad/m-p/3296033#M57586</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have just started to programming VB.NET with AutoCad but can´t find any information about how to attach a image from a userform commandbuton into AutoCad. I have programming in VBA before but can´t find any solution for inserting pictures in VB.NET. Is it possible to use the "imageattach" with attributes? or -image command? Or should I use Rasterimage?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want a image (*.jpg*) file to appear in AutoCad when I press the Commandbutton in my Form.&lt;/P&gt;&lt;P&gt;I hope you understand what I mean. And excuse,if my english is bad!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2012 18:20:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/attach-image-from-vb-net-to-autocad/m-p/3296033#M57586</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-17T18:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Attach image from VB.NET to AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/attach-image-from-vb-net-to-autocad/m-p/3296297#M57587</link>
      <description>&lt;P&gt;search for &amp;nbsp;&lt;SPAN style="line-height: 140%; color: #2b91af;"&gt;RasterImage&lt;/SPAN&gt; &amp;nbsp; in &lt;A target="_blank" href="http://through-the-interface.typepad.com"&gt;http://through-the-interface.typepad.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2012 20:31:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/attach-image-from-vb-net-to-autocad/m-p/3296297#M57587</guid>
      <dc:creator>SENL1362</dc:creator>
      <dc:date>2012-01-17T20:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Attach image from VB.NET to AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/attach-image-from-vb-net-to-autocad/m-p/3296471#M57588</link>
      <description>&lt;P&gt;Hi! Thanks for the link. Have looked there and can only find codes for C#. What library do I need to import for doing rasterimage?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2012 22:07:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/attach-image-from-vb-net-to-autocad/m-p/3296471#M57588</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-17T22:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Attach image from VB.NET to AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/attach-image-from-vb-net-to-autocad/m-p/3296495#M57589</link>
      <description>&lt;P&gt;&lt;A target="_blank" href="http://www.developerfusion.com/tools/convert/csharp-to-vb/"&gt;http://www.developerfusion.com/tools/convert/csharp-to-vb/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2012 22:22:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/attach-image-from-vb-net-to-autocad/m-p/3296495#M57589</guid>
      <dc:creator>arcticad</dc:creator>
      <dc:date>2012-01-17T22:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Attach image from VB.NET to AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/attach-image-from-vb-net-to-autocad/m-p/3296547#M57590</link>
      <description>&lt;P&gt;Reference library is acdbmgd. Rasterimagedef is a member of Autodesk.AutoCAD.DatabaseServices.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code samples are limited.&amp;nbsp; You should search here for more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ObjectID of dictionary is&lt;/P&gt;&lt;P&gt;Dim &lt;FONT size="2"&gt;imagedictionaryId &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;As &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;ObjectId = RasterImageDef.GetImageDictionary(db)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Dictionary is &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Dim &lt;FONT size="2"&gt;&lt;FONT size="2"&gt;imagedictionary &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;As &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;DBDictionary = tx.GetObject(imagedictionaryId, OpenMode.ForWrite)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2012 23:09:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/attach-image-from-vb-net-to-autocad/m-p/3296547#M57590</guid>
      <dc:creator>fieldguy</dc:creator>
      <dc:date>2012-01-17T23:09:33Z</dc:date>
    </item>
  </channel>
</rss>

