<?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: Load dll-files in Acad2013 in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/load-dll-files-in-acad2013/m-p/3392369#M56531</link>
    <description>&lt;P&gt;Ty for your help, but i have a other problem now LOL&amp;nbsp;&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://forums.autodesk.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;OK, i updated my project to NETframework 4.0... seems to work now. Thank you very much!&lt;/P&gt;</description>
    <pubDate>Fri, 30 Mar 2012 06:48:20 GMT</pubDate>
    <dc:creator>stefan.hofer</dc:creator>
    <dc:date>2012-03-30T06:48:20Z</dc:date>
    <item>
      <title>Load dll-files in Acad2013</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-dll-files-in-acad2013/m-p/3390515#M56525</link>
      <description>&lt;P&gt;Someone already tried to load VB dll's in Acad2013?&amp;nbsp;&lt;/P&gt;&lt;P&gt;They dont work for me - no message and no error, nothing happens.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in 2012 they worked well.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2012 07:42:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-dll-files-in-acad2013/m-p/3390515#M56525</guid>
      <dc:creator>stefan.hofer</dc:creator>
      <dc:date>2012-03-29T07:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Load dll-files in Acad2013</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-dll-files-in-acad2013/m-p/3390517#M56526</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do you mean VB6 dll's oder VB.NET dll's&lt;/P&gt;&lt;P&gt;Have you set new references (according to AutoCAD 2013/19.0) before you compiled the DLL's?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A little bit little, your info &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2012 07:44:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-dll-files-in-acad2013/m-p/3390517#M56526</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-03-29T07:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Load dll-files in Acad2013</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-dll-files-in-acad2013/m-p/3390571#M56527</link>
      <description>&lt;P&gt;ahhhh&lt;/P&gt;&lt;P&gt;you'r right i have to rebuild my scripts with the r19 references...&lt;/P&gt;&lt;P&gt;i hope this works - i get errors in my code with the new references.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2012 08:33:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-dll-files-in-acad2013/m-p/3390571#M56527</guid>
      <dc:creator>stefan.hofer</dc:creator>
      <dc:date>2012-03-29T08:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Load dll-files in Acad2013</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-dll-files-in-acad2013/m-p/3390577#M56528</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; i get errors in my code with the new references&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Yes, there are some modifications necessary to your code as there are some moves of functions/properties to different DLLs/different namespaces. But as long as we don't see what error you have we can't do anything for you &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2012 08:37:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-dll-files-in-acad2013/m-p/3390577#M56528</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-03-29T08:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Load dll-files in Acad2013</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-dll-files-in-acad2013/m-p/3390619#M56529</link>
      <description>&lt;P&gt;ok, one error left...&lt;/P&gt;&lt;PRE&gt;    Public ReadOnly Property ThisDrawing As AcadDocument
        Get
            Return   Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.AcadDocument
        End Get
    End Property&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;msg:&lt;/P&gt;&lt;P&gt;AcadDocument is not a member of Autodesk.AutoCAD.ApplicationServices.Document&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2012 09:35:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-dll-files-in-acad2013/m-p/3390619#M56529</guid>
      <dc:creator>stefan.hofer</dc:creator>
      <dc:date>2012-03-29T09:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Load dll-files in Acad2013</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-dll-files-in-acad2013/m-p/3392223#M56530</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;one global change you have to do is to add a new DLL to the references:&lt;/P&gt;&lt;P&gt;AcCoreMgd.dll&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To your statement getting asscess to the COM-based AcadDocument you have to use this way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim tAcadDoc as ApplicationServices.Document
Dim tAcadDocCOM as Interop.AcadDocument

tAcadDoc = ApplicationServices.Application.DocumentManager.MdiActiveDocument

tAcadDocCOM = CType(ApplicationServices.DocumentExtension.GetAcadDocument(tAcadDoc), Interop.AcadDocument)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH, - alfred -&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2012 02:13:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-dll-files-in-acad2013/m-p/3392223#M56530</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-03-30T02:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Load dll-files in Acad2013</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-dll-files-in-acad2013/m-p/3392369#M56531</link>
      <description>&lt;P&gt;Ty for your help, but i have a other problem now LOL&amp;nbsp;&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://forums.autodesk.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;OK, i updated my project to NETframework 4.0... seems to work now. Thank you very much!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2012 06:48:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-dll-files-in-acad2013/m-p/3392369#M56531</guid>
      <dc:creator>stefan.hofer</dc:creator>
      <dc:date>2012-03-30T06:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Load dll-files in Acad2013</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-dll-files-in-acad2013/m-p/3392407#M56532</link>
      <description>&lt;P&gt;To get "ThisDrawing" i use&lt;/P&gt;&lt;PRE&gt;Return DocumentExtension.GetAcadDocument(Application.DocumentManager.MdiActiveDocument)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if someone have the same problem...&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2012 07:04:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-dll-files-in-acad2013/m-p/3392407#M56532</guid>
      <dc:creator>stefan.hofer</dc:creator>
      <dc:date>2012-03-30T07:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Load dll-files in Acad2013</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-dll-files-in-acad2013/m-p/5460990#M56533</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;Alfred,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DocumentExtension worked for me.&lt;/P&gt;&lt;P&gt;I have to make a code of my ex-colleague usable for AutoCAD 2015, so i don't have much experience with the code.&lt;/P&gt;&lt;P&gt;The problem is that&amp;nbsp;&amp;nbsp;he declared tAcadDoc as editor.&lt;/P&gt;&lt;P&gt;If i use your code i wont get that error anymore (tAcadDoc --&amp;gt; doc1) (tAcadDocCOM --&amp;gt; ed) but it gives me extra errors after it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Dim ed as ApplicationServices.Document&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Dim doc1 as Interop.AcadDocument&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ed = ApplicationServices.Application.DocumentManager.MdiActiveDocument&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;doc1 = CType(ApplicationServices.DocumentExtension.GetAcadDocument(ed), Interop.AcadDocument)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Old code:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; Dim doc1 As Autodesk.AutoCAD.Interop.AcadDocument = Application.DocumentManager.MdiActiveDocument.AcadDocument&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ed As Editor = Application.DocumentManager.MdiActiveDocument.Editor&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because ed is now declared as ApplicationServices.Document, i can't use for example ed.WriteMessage because it's not declared as editor anymore:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ed.WriteMessage(vbCrLf &amp;amp; "Initializing - Loading User Preferences - ST-CadCommands." &amp;amp; vbCrLf)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to declare ed as editor but then it says that it can't convert&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;ApplicationServices.Application.DocumentManager.MdiActiveDocument&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;EditorIput.Editor&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have added accoremgd, acdbmgd, AcDx, Acmgd, AutoCAD, Interop, Interop.Common and AXDBLib to the references&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me further?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Arjan&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;&lt;P&gt;&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2015 10:33:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-dll-files-in-acad2013/m-p/5460990#M56533</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-07T10:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Load dll-files in Acad2013</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-dll-files-in-acad2013/m-p/5461063#M56534</link>
      <description>&lt;PRE&gt;Dim doc As Document = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument
Dim db As Database = doc.Database
Dim ed As Editor = doc.Editor&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;try this...&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2015 12:16:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-dll-files-in-acad2013/m-p/5461063#M56534</guid>
      <dc:creator>stefan.hofer</dc:creator>
      <dc:date>2015-01-07T12:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Load dll-files in Acad2013</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-dll-files-in-acad2013/m-p/5462242#M56535</link>
      <description>&lt;P&gt;Thank you very much:)&lt;/P&gt;&lt;P&gt;That totally worked for me!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2015 07:43:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-dll-files-in-acad2013/m-p/5462242#M56535</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-08T07:43:12Z</dc:date>
    </item>
  </channel>
</rss>

