<?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 error in document object creation in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/error-in-document-object-creation/m-p/3448205#M55679</link>
    <description>&lt;P&gt;using System;&lt;BR /&gt;using System.Threading;&lt;BR /&gt;using System.Collections.Generic;&lt;BR /&gt;using System.Linq;&lt;BR /&gt;using System.Text;&lt;BR /&gt;using System.IO;&lt;BR /&gt;using System.Runtime.InteropServices;&lt;BR /&gt;using Autodesk.AutoCAD.Interop.Common;&lt;BR /&gt;using Autodesk.AutoCAD.Interop;&lt;BR /&gt;using Autodesk.AutoCAD.ApplicationServices;&lt;BR /&gt;using Autodesk.AutoCAD.DatabaseServices;&lt;BR /&gt;using Autodesk.AutoCAD.Runtime;&lt;BR /&gt;using Autodesk.AutoCAD.EditorInput;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;namespace application&lt;BR /&gt;{&lt;BR /&gt;class Program&lt;BR /&gt;{&lt;BR /&gt;static void Main(string[] args)&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Document acDoc = Application.DocumentManager.MdiActiveDocument;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Working Environment:-&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Visual Studio 2010&lt;/LI&gt;&lt;LI&gt;AutoCAD 2011&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;C#&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After run following error will occure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;An unhandled exception of type 'System.TypeLoadException' occurred in mscorlib.dll&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additional information: Method 'CopyTo' in type 'Autodesk.AutoCAD.ApplicationServices.DocumentCollection'&lt;/P&gt;&lt;P&gt;from assembly 'acmgd, Version=18.1.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation ."&lt;/P&gt;</description>
    <pubDate>Tue, 08 May 2012 10:29:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-05-08T10:29:21Z</dc:date>
    <item>
      <title>error in document object creation</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-in-document-object-creation/m-p/3448205#M55679</link>
      <description>&lt;P&gt;using System;&lt;BR /&gt;using System.Threading;&lt;BR /&gt;using System.Collections.Generic;&lt;BR /&gt;using System.Linq;&lt;BR /&gt;using System.Text;&lt;BR /&gt;using System.IO;&lt;BR /&gt;using System.Runtime.InteropServices;&lt;BR /&gt;using Autodesk.AutoCAD.Interop.Common;&lt;BR /&gt;using Autodesk.AutoCAD.Interop;&lt;BR /&gt;using Autodesk.AutoCAD.ApplicationServices;&lt;BR /&gt;using Autodesk.AutoCAD.DatabaseServices;&lt;BR /&gt;using Autodesk.AutoCAD.Runtime;&lt;BR /&gt;using Autodesk.AutoCAD.EditorInput;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;namespace application&lt;BR /&gt;{&lt;BR /&gt;class Program&lt;BR /&gt;{&lt;BR /&gt;static void Main(string[] args)&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Document acDoc = Application.DocumentManager.MdiActiveDocument;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Working Environment:-&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Visual Studio 2010&lt;/LI&gt;&lt;LI&gt;AutoCAD 2011&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;C#&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After run following error will occure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;An unhandled exception of type 'System.TypeLoadException' occurred in mscorlib.dll&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additional information: Method 'CopyTo' in type 'Autodesk.AutoCAD.ApplicationServices.DocumentCollection'&lt;/P&gt;&lt;P&gt;from assembly 'acmgd, Version=18.1.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation ."&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2012 10:29:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-in-document-object-creation/m-p/3448205#M55679</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-08T10:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: error in document object creation</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-in-document-object-creation/m-p/3448277#M55680</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="hps"&gt;I see&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;what you're trying&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to create a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;standalone application&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;(exe-file).&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;In this case&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;you can not&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;use&lt;/SPAN&gt; &lt;SPAN class="hps atn"&gt;AutoCAD. NET API (&lt;/SPAN&gt;&lt;SPAN&gt;ie&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;acmgd.dll, acdbmgd.dll, accoremgd.dll, etc)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2012 11:48:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-in-document-object-creation/m-p/3448277#M55680</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2012-05-08T11:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: error in document object creation</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-in-document-object-creation/m-p/3449435#M55681</link>
      <description>&lt;P&gt;Although you can license the RealDWG SDK to add DWG capability to your own app. Brief explanation here - &lt;A href="http://adndevblog.typepad.com/autocad/2012/03/readingwriting-dwg-files-from-a-standalone-application.html" target="_blank"&gt;http://adndevblog.typepad.com/autocad/2012/03/readingwriting-dwg-files-from-a-standalone-application.html&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2012 20:40:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-in-document-object-creation/m-p/3449435#M55681</guid>
      <dc:creator>StephenPreston</dc:creator>
      <dc:date>2012-05-08T20:40:30Z</dc:date>
    </item>
  </channel>
</rss>

