<?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 How to get AcadApplication from a C# assembly running in AutoCAD OEM? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-get-acadapplication-from-a-c-assembly-running-in-autocad/m-p/5060852#M43818</link>
    <description>&lt;P&gt;The following C# code works under AutoCAD (2013/14) and crashes under AutoCAD OEM 2013:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;dynamic acadApp = Autodesk.AutoCAD.ApplicationServices.Application.AcadApplication;
dynamic preferences = acadApp.Preferences; //OK in AutoCAD. Crash in AutoCAD OEM&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suppose the OEM crashes, because it doesn’t expose the AcadApplication &amp;nbsp;COM interface. Am I right?&lt;/P&gt;&lt;P&gt;In C++ I can get the OEM’s IAcadApplication Interface when I am in an ARX that is running in acad’s / oem’s address space:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;CWinApp *pApp = acedGetAcadWinApp();
IAcadApplication *pIAcad = (IAcadApplication*)pApp-&amp;gt;GetIDispatch(TRUE);&lt;/PRE&gt;&lt;P&gt;I&lt;SPAN style="line-height: 15px;"&gt;s there a similar way to get the AcadApplication in C# that works in CAD _&lt;/SPAN&gt;&lt;EM&gt;and&lt;/EM&gt;&lt;SPAN style="line-height: 15px;"&gt;_ OEM?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;--Thomas&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 May 2014 13:02:57 GMT</pubDate>
    <dc:creator>tbrammer</dc:creator>
    <dc:date>2014-05-28T13:02:57Z</dc:date>
    <item>
      <title>How to get AcadApplication from a C# assembly running in AutoCAD OEM?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-get-acadapplication-from-a-c-assembly-running-in-autocad/m-p/5060852#M43818</link>
      <description>&lt;P&gt;The following C# code works under AutoCAD (2013/14) and crashes under AutoCAD OEM 2013:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;dynamic acadApp = Autodesk.AutoCAD.ApplicationServices.Application.AcadApplication;
dynamic preferences = acadApp.Preferences; //OK in AutoCAD. Crash in AutoCAD OEM&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suppose the OEM crashes, because it doesn’t expose the AcadApplication &amp;nbsp;COM interface. Am I right?&lt;/P&gt;&lt;P&gt;In C++ I can get the OEM’s IAcadApplication Interface when I am in an ARX that is running in acad’s / oem’s address space:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;CWinApp *pApp = acedGetAcadWinApp();
IAcadApplication *pIAcad = (IAcadApplication*)pApp-&amp;gt;GetIDispatch(TRUE);&lt;/PRE&gt;&lt;P&gt;I&lt;SPAN style="line-height: 15px;"&gt;s there a similar way to get the AcadApplication in C# that works in CAD _&lt;/SPAN&gt;&lt;EM&gt;and&lt;/EM&gt;&lt;SPAN style="line-height: 15px;"&gt;_ OEM?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;--Thomas&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2014 13:02:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-get-acadapplication-from-a-c-assembly-running-in-autocad/m-p/5060852#M43818</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2014-05-28T13:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to get AcadApplication from a C# assembly running in AutoCAD OEM?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-get-acadapplication-from-a-c-assembly-running-in-autocad/m-p/5061416#M43820</link>
      <description>&lt;P&gt;Sorry, I deleted my previous reply to this post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will need to look into your query more closely.&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2014 15:47:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-get-acadapplication-from-a-c-assembly-running-in-autocad/m-p/5061416#M43820</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2014-05-28T15:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get AcadApplication from a C# assembly running in AutoCAD OEM?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-get-acadapplication-from-a-c-assembly-running-in-autocad/m-p/5061738#M43821</link>
      <description>&lt;P&gt;The Interop dll's are available in the AutoCAD OEM specific ObjectARX as well, even though the ActiveX object model isn't exposed in AutoCAD OEM in a similar way that vanilla AutoCAD..&lt;/P&gt;&lt;P&gt;I tried with AutoCAD OEM 2014 without the dynamic types that you had:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AcadApplication acadapp = (AcadApplication)Application.AcadApplication;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AcadPreferences preferences = (AcadPreferences)acadapp.Preferences;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried referencing the TLB's from Inc-x64, it works fine too:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AutoCAD.AcadApplication acadapp = (AutoCAD.AcadApplication)Application.AcadApplication;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AutoCAD.AcadPreferences preferences = (AutoCAD.AcadPreferences)acadapp.Preferences;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe, Balaji can throw some light on why 'dynamic' wouldn't work in the OEM environment?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Paavo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2014 18:05:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-get-acadapplication-from-a-c-assembly-running-in-autocad/m-p/5061738#M43821</guid>
      <dc:creator>techsoft3d</dc:creator>
      <dc:date>2014-05-28T18:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get AcadApplication from a C# assembly running in AutoCAD OEM?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-get-acadapplication-from-a-c-assembly-running-in-autocad/m-p/5067928#M43822</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;SPAN&gt;&lt;A target="_self" href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2217708"&gt;paavo&lt;/A&gt;!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Changing 'dynamic' to 'AutoCAD.AcadApplication' really does the trick!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I didn't even know the that acadapp's class is &amp;nbsp;'AutoCAD.AcadApplication' because docs and headers ony say it is an 'object' :-(.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I had to reference 'AutoCAD' from &amp;lt;oem&amp;gt;\arx\inc-x64\acax19ENU.tlb&amp;nbsp;&amp;nbsp;in my project to make it compileable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But even with the reference to '&lt;SPAN&gt;AutoCAD' the code only works with explicit casting to &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;AutoCAD.AcadApplication'&lt;/SPAN&gt;&amp;nbsp;in OEM.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@&lt;A target="_blank" href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/765444"&gt;Balaji_Ram&lt;/A&gt;&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;(a) Can you confirm that it is safe to use&amp;nbsp;&lt;SPAN&gt;AcadApplication in the OEM like this?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;(b) Why doesn't 'dynamic' work in OEM?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;--Thomas&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2014 08:26:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-get-acadapplication-from-a-c-assembly-running-in-autocad/m-p/5067928#M43822</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2014-06-02T08:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get AcadApplication from a C# assembly running in AutoCAD OEM?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-get-acadapplication-from-a-c-assembly-running-in-autocad/m-p/5074520#M43823</link>
      <description>&lt;P&gt;Hi Thomas,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;From the reply that I received from our engineering team, AutoCAD OEM intentionally puts some restrictions on using dynamic keyword due to certain licensing checks in OEM with which the dynamic keyword was interfering.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;About using the interop assemblies - Yes, that should work ok. The interop assemblies are found in the Arx sub folder in the OEM install folder. You do not need the tlb to be referenced.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Balaji&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2014 17:56:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-get-acadapplication-from-a-c-assembly-running-in-autocad/m-p/5074520#M43823</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2014-06-04T17:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to get AcadApplication from a C# assembly running in AutoCAD OEM?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-get-acadapplication-from-a-c-assembly-running-in-autocad/m-p/5075950#M43824</link>
      <description>&lt;P&gt;Hi Balaji,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for the clarification.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think this difference between AutoCAD and AutoCAD OEM should be mentioned in the OEM developers guide (oemdev) in the&lt;/P&gt;&lt;P&gt;“How Do AutoCAD and AutoCAD OEM differ?” section.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Beside that I think the documentation of &amp;nbsp;&amp;nbsp;&lt;SPAN style="line-height: 15px;"&gt;Autodesk.AutoCAD.ApplicationServices.Application &amp;nbsp; is insufficient.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;The only description of the&amp;nbsp;Application.AcadApplication Property in the "Managed Class Referece" is this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; C#: public static object AcadApplication;&lt;BR /&gt;&amp;nbsp; VB: Public static Property AcadApplication() As object&lt;BR /&gt;&amp;nbsp; Description: Accesses the AcadApplication.&lt;BR /&gt;&amp;nbsp; Conditions: Read-only&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;How am I supposed to find out that&amp;nbsp;&lt;SPAN&gt;the&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;object&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;represents an&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;AutoCAD.AcadApplication&lt;/FONT&gt;&amp;nbsp;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;And where is&amp;nbsp;&lt;SPAN&gt;AutoCAD.AcadApplication documented?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(I have to admit that I'm more a C++ than an C# expert.)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--Thomas&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://dict.leo.org/#/search=self-explanatory&amp;amp;searchLoc=0&amp;amp;resultOrder=basic&amp;amp;multiwordShowSingle=on" target="_blank"&gt;&amp;nbsp;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2014 08:25:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-get-acadapplication-from-a-c-assembly-running-in-autocad/m-p/5075950#M43824</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2014-06-05T08:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get AcadApplication from a C# assembly running in AutoCAD OEM?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-get-acadapplication-from-a-c-assembly-running-in-autocad/m-p/5075968#M43825</link>
      <description>&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;EM&gt;"&lt;SPAN style="font-size: 14px; line-height: 15px;"&gt;...should be mentioned in the OEM developers guide (oemdev) in the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 14px; line-height: 15px;"&gt;“How Do AutoCAD and AutoCAD OEM differ?” section."&lt;/SPAN&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN style="font-size: 14px; line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 14px; line-height: 15px;"&gt;I will inform the documentation team to get this change.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;EM&gt;&lt;SPAN style="font-size: 14px;"&gt;"How am I supposed to find out that&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 14px;"&gt;the&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier" style="font-size: 14px;"&gt;object&lt;/FONT&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;represents an&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier" style="font-size: 14px;"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="courier new,courier" style="font-size: 14px;"&gt;AutoCAD.AcadApplication&lt;/FONT&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;?"&lt;/SPAN&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;I do not have an answer to that.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The way I get them is to find a class with the same name in the COM API documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;EM&gt;"And where is&amp;nbsp;AutoCAD.AcadApplication documented?"&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;For a documentation of the COM API, you will need to refer to the ActiveX API documentation that is part of AutoCAD help.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Balaji&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2014 08:46:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-get-acadapplication-from-a-c-assembly-running-in-autocad/m-p/5075968#M43825</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2014-06-05T08:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to get AcadApplication from a C# assembly running in AutoCAD OEM?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-get-acadapplication-from-a-c-assembly-running-in-autocad/m-p/7202306#M43826</link>
      <description>&lt;P&gt;Downloaded Object ARX SDK 2018. Referenced : inc-x64\acax22ENU.TLB and inc-x64\axdb22enu.tlb&lt;/P&gt;
&lt;P&gt;added:&lt;/P&gt;
&lt;P&gt;Using AutoCAD;&lt;/P&gt;
&lt;P&gt;I am able to start an instance of AutoCAD using:&lt;/P&gt;
&lt;P&gt;AcadApplication acapp = new AcadApplication();&lt;/P&gt;
&lt;P&gt;but I cannot figure out how to access an exiting instance of AutoCAD.&lt;/P&gt;
&lt;P&gt;This line:&lt;/P&gt;
&lt;P&gt;AutoCAD.AcadApplication acadapp = (AutoCAD.AcadApplication)Application.AcadApplication;&lt;/P&gt;
&lt;P&gt;Is not valid ... Application does not contain a definition for AcadApplication&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 05:15:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-get-acadapplication-from-a-c-assembly-running-in-autocad/m-p/7202306#M43826</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-04T05:15:42Z</dc:date>
    </item>
  </channel>
</rss>

