<?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: creaing a net dll for AutoCAD and call from COM exe in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/creaing-a-net-dll-for-autocad-and-call-from-com-exe/m-p/2695769#M65555</link>
    <description>&lt;P&gt;How did you deploy your server?&amp;nbsp; And, did you register it ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you're using a 32 bit AutoCAD, then you need to use the 32 bit version&lt;/P&gt;&lt;P&gt;of your DLL, and you have to make sure it's registered as a 32 bit server.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jun 2010 19:36:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-06-11T19:36:58Z</dc:date>
    <item>
      <title>creaing a net dll for AutoCAD and call from COM exe</title>
      <link>https://forums.autodesk.com/t5/net-forum/creaing-a-net-dll-for-autocad-and-call-from-com-exe/m-p/2679124#M65551</link>
      <description>I am sure this has been discussed before, but I can't find any solid answer after doing some search.&lt;BR /&gt;
I found many samples for creating a net dll which uses the new AutoCAD net api.  But how can I link to the net dll and call the functions from a COM exe (VB6) file ?     I found a sample which works for linkng non-AutoCAD net dll (i.e. register for com interlop) , but what I am looking for is a sample code which passes and returns parameters between COM exe and NET dll where NET dll retreives some AutoCAD values through the net api and return them to the calling COM routine.  I am assumming that the NET dll must be loaded in AutoCAD first or is there a way to load it from the calling COM exe file ?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance for your reply.&lt;BR /&gt;
&lt;BR /&gt;
Andrew,</description>
      <pubDate>Thu, 06 May 2010 13:54:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/creaing-a-net-dll-for-autocad-and-call-from-com-exe/m-p/2679124#M65551</guid>
      <dc:creator>dnl999</dc:creator>
      <dc:date>2010-05-06T13:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: creaing a net dll for AutoCAD and call from COM exe</title>
      <link>https://forums.autodesk.com/t5/net-forum/creaing-a-net-dll-for-autocad-and-call-from-com-exe/m-p/2679125#M65552</link>
      <description>You can build a COM server that is loaded into AutoCAD&lt;BR /&gt;
using the AcadApplication.GetInterfaceObject() method.&lt;BR /&gt;
&lt;BR /&gt;
The only difference between a COM server that runs in&lt;BR /&gt;
AuotCAD and any other COM server, is that you must&lt;BR /&gt;
derive your COM server class from this class:&lt;BR /&gt;
&lt;BR /&gt;
   System.EnterpriseServices.ServicedComponent&lt;BR /&gt;
&lt;BR /&gt;
Doing that ensures that your server methods run in&lt;BR /&gt;
the correct execution context, and can access the&lt;BR /&gt;
ObjectARX API.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2011&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;DNL999&gt; wrote in message news:6386824@discussion.autodesk.com...&lt;BR /&gt;
I am sure this has been discussed before, but I can't find any solid answer &lt;BR /&gt;
after doing some search.&lt;BR /&gt;
I found many samples for creating a net dll which uses the new AutoCAD net api. &lt;BR /&gt;
But how can I link to the net dll and call the functions from a COM exe (VB6) &lt;BR /&gt;
file ?     I found a sample which works for linkng non-AutoCAD net dll (i.e. &lt;BR /&gt;
register for com interlop) , but what I am looking for is a sample code which &lt;BR /&gt;
passes and returns parameters between COM exe and NET dll where NET dll &lt;BR /&gt;
retreives some AutoCAD values through the net api and return them to the calling &lt;BR /&gt;
COM routine.  I am assumming that the NET dll must be loaded in AutoCAD first or &lt;BR /&gt;
is there a way to load it from the calling COM exe file ?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance for your reply.&lt;BR /&gt;
&lt;BR /&gt;
Andrew,&lt;/DNL999&gt;</description>
      <pubDate>Thu, 06 May 2010 22:11:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/creaing-a-net-dll-for-autocad-and-call-from-com-exe/m-p/2679125#M65552</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-06T22:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: creaing a net dll for AutoCAD and call from COM exe</title>
      <link>https://forums.autodesk.com/t5/net-forum/creaing-a-net-dll-for-autocad-and-call-from-com-exe/m-p/2679126#M65553</link>
      <description>Thank you very much and hopefully after following your instructions I will see the light at the end of tunnel.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Thu, 06 May 2010 23:37:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/creaing-a-net-dll-for-autocad-and-call-from-com-exe/m-p/2679126#M65553</guid>
      <dc:creator>dnl999</dc:creator>
      <dc:date>2010-05-06T23:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: creaing a net dll for AutoCAD and call from COM exe</title>
      <link>https://forums.autodesk.com/t5/net-forum/creaing-a-net-dll-for-autocad-and-call-from-com-exe/m-p/2695563#M65554</link>
      <description>&lt;P&gt;Tony,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After some hard work I was able to do what you described on Windows XP with Civil 3D 2011 (32-bit).&lt;/P&gt;&lt;P&gt;But, it doesn't seem to work on Windows 7 with Civil 3D 2011&amp;nbsp;64-bit version.&amp;nbsp; It keeps giving me the message "Problem in loading application"&amp;nbsp; at the line getinterfaceObject.&amp;nbsp; I created the dll and tlb file in VS 2008 on both platforms but still the same problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea ?...&amp;nbsp; Thank you so much for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew,&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2010 15:36:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/creaing-a-net-dll-for-autocad-and-call-from-com-exe/m-p/2695563#M65554</guid>
      <dc:creator>dnl999</dc:creator>
      <dc:date>2010-06-11T15:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: creaing a net dll for AutoCAD and call from COM exe</title>
      <link>https://forums.autodesk.com/t5/net-forum/creaing-a-net-dll-for-autocad-and-call-from-com-exe/m-p/2695769#M65555</link>
      <description>&lt;P&gt;How did you deploy your server?&amp;nbsp; And, did you register it ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you're using a 32 bit AutoCAD, then you need to use the 32 bit version&lt;/P&gt;&lt;P&gt;of your DLL, and you have to make sure it's registered as a 32 bit server.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2010 19:36:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/creaing-a-net-dll-for-autocad-and-call-from-com-exe/m-p/2695769#M65555</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-11T19:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: creaing a net dll for AutoCAD and call from COM exe</title>
      <link>https://forums.autodesk.com/t5/net-forum/creaing-a-net-dll-for-autocad-and-call-from-com-exe/m-p/2695969#M65556</link>
      <description>&lt;P&gt;32-bit civil 3D 2011 on Windows XP worked fine probably because vs 2008 automatically registered the dll/tbl.&amp;nbsp; It is the 64-bit civil 3D 2011 on Windows 7 (64-bit) I am having problem with.&amp;nbsp;&amp;nbsp;Since the client is a&amp;nbsp;vb6 exe application, do I have to compile &amp;amp; register the dll/tlb using regsvr32&amp;nbsp; or regasm on Windows 7 ?&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jun 2010 11:10:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/creaing-a-net-dll-for-autocad-and-call-from-com-exe/m-p/2695969#M65556</guid>
      <dc:creator>dnl999</dc:creator>
      <dc:date>2010-06-12T11:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: creaing a net dll for AutoCAD and call from COM exe</title>
      <link>https://forums.autodesk.com/t5/net-forum/creaing-a-net-dll-for-autocad-and-call-from-com-exe/m-p/2695977#M65557</link>
      <description>&lt;P&gt;Yes, you can't rely on VS to register your active servers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jun 2010 12:14:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/creaing-a-net-dll-for-autocad-and-call-from-com-exe/m-p/2695977#M65557</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-12T12:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: creaing a net dll for AutoCAD and call from COM exe</title>
      <link>https://forums.autodesk.com/t5/net-forum/creaing-a-net-dll-for-autocad-and-call-from-com-exe/m-p/2696121#M65558</link>
      <description>&lt;P&gt;Ok, thanks for the info and I will try again.&lt;/P&gt;&lt;P&gt;You have been very helpful.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew,&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2010 01:44:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/creaing-a-net-dll-for-autocad-and-call-from-com-exe/m-p/2696121#M65558</guid>
      <dc:creator>dnl999</dc:creator>
      <dc:date>2010-06-14T01:44:01Z</dc:date>
    </item>
  </channel>
</rss>

