<?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 create an ole object with Ole2frame in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-create-an-ole-object-with-ole2frame/m-p/3573390#M58688</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had replied to your other post on the same topic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;
&lt;P&gt;It is not possible for applications to create an ole object (AcDbOle2Frame/Ole2Frame object) in AutoCAD.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is explained in the ObjectARX help file in the description for “setOleObject” method and I quote : &lt;BR /&gt;“The COleClientItem class used by AutoCAD is a modified version of the class that ships from Microsoft. This means that it is not possible for applications to create their own COleClientItem objects for use by this function. This function can only be used with COleClientItem objects created by AutoCAD (that is, the object from another AcDbOle2Frame object).“&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For this reason, the workaround could be to use a drawing file that contains the image as a template and using it in an insert operation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it is just an image in the drawing that you want to insert (not a Ole2Frame), you may find this blog post helpful :&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/autocad/2012/05/how-to-insert-a-rasterimage-using-the-net-api.html" rel="nofollow" target="_blank"&gt;http://adndevblog.typepad.com/autocad/2012/05/how-to-insert-a-rasterimage-using-the-net-api.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Aug 2012 09:54:42 GMT</pubDate>
    <dc:creator>Balaji_Ram</dc:creator>
    <dc:date>2012-08-10T09:54:42Z</dc:date>
    <item>
      <title>how to create an ole object with Ole2frame</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-create-an-ole-object-with-ole2frame/m-p/3203222#M58686</link>
      <description>&lt;P&gt;i want to create an ole object linked with a bmp file.but when i create the ole2frame object with the code "ole2frame obj = new ole2frame();",i don't know what to do next.can anybody help me?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2011 03:08:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-create-an-ole-object-with-ole2frame/m-p/3203222#M58686</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-25T03:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to create an ole object with Ole2frame</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-create-an-ole-object-with-ole2frame/m-p/3568650#M58687</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;We need a create an OLE OBJECT&amp;nbsp; Source Code. Do you have ?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2012 17:45:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-create-an-ole-object-with-ole2frame/m-p/3568650#M58687</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-07T17:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to create an ole object with Ole2frame</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-create-an-ole-object-with-ole2frame/m-p/3573390#M58688</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had replied to your other post on the same topic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;
&lt;P&gt;It is not possible for applications to create an ole object (AcDbOle2Frame/Ole2Frame object) in AutoCAD.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is explained in the ObjectARX help file in the description for “setOleObject” method and I quote : &lt;BR /&gt;“The COleClientItem class used by AutoCAD is a modified version of the class that ships from Microsoft. This means that it is not possible for applications to create their own COleClientItem objects for use by this function. This function can only be used with COleClientItem objects created by AutoCAD (that is, the object from another AcDbOle2Frame object).“&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For this reason, the workaround could be to use a drawing file that contains the image as a template and using it in an insert operation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it is just an image in the drawing that you want to insert (not a Ole2Frame), you may find this blog post helpful :&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/autocad/2012/05/how-to-insert-a-rasterimage-using-the-net-api.html" rel="nofollow" target="_blank"&gt;http://adndevblog.typepad.com/autocad/2012/05/how-to-insert-a-rasterimage-using-the-net-api.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2012 09:54:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-create-an-ole-object-with-ole2frame/m-p/3573390#M58688</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2012-08-10T09:54:42Z</dc:date>
    </item>
  </channel>
</rss>

