<?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: AeccXUiLand.AeccApplication in Civil 3D Customization Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/8775523#M9746</link>
    <description>&lt;DIV style="font-size: 1.1em; font-family: 'Artifakt'; line-height: 1.3em; margin: 15px 100px 80px 100px;"&gt;
&lt;P&gt;See the &lt;A href="https://www.theswamp.org/index.php?topic=52814.0" target="_blank" rel="noopener"&gt;lisp code in the second post here&lt;/A&gt; for one way to do it.&lt;/P&gt;
&lt;P&gt;2018, 12.0&lt;/P&gt;
&lt;P&gt;2019, 13.0&lt;/P&gt;
&lt;P&gt;2020, 13.2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you just want to view it, run the command AECCVERSION.&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 07 May 2019 12:46:36 GMT</pubDate>
    <dc:creator>rkmcswain</dc:creator>
    <dc:date>2019-05-07T12:46:36Z</dc:date>
    <item>
      <title>AeccXUiLand.AeccApplication</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/8775478#M9745</link>
      <description>&lt;P&gt;&lt;U&gt;11.0&lt;/U&gt; is what I've been using Civil 3D 2017.&lt;/P&gt;
&lt;P&gt;Const m_sAcadAppId As String = "AeccXUiLand.AeccApplication.11.0"&lt;/P&gt;
&lt;P&gt;Const m_sSurveyAppId As String = "AeccXUiSurvey.AeccSurveyApplication.11.0"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the number for Civil 3D 2019?&lt;/P&gt;
&lt;P&gt;Is there a variable in the .Net API to find this number?&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 12:32:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/8775478#M9745</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-07T12:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: AeccXUiLand.AeccApplication</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/8775523#M9746</link>
      <description>&lt;DIV style="font-size: 1.1em; font-family: 'Artifakt'; line-height: 1.3em; margin: 15px 100px 80px 100px;"&gt;
&lt;P&gt;See the &lt;A href="https://www.theswamp.org/index.php?topic=52814.0" target="_blank" rel="noopener"&gt;lisp code in the second post here&lt;/A&gt; for one way to do it.&lt;/P&gt;
&lt;P&gt;2018, 12.0&lt;/P&gt;
&lt;P&gt;2019, 13.0&lt;/P&gt;
&lt;P&gt;2020, 13.2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you just want to view it, run the command AECCVERSION.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 May 2019 12:46:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/8775523#M9746</guid>
      <dc:creator>rkmcswain</dc:creator>
      <dc:date>2019-05-07T12:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: AeccXUiLand.AeccApplication</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/8775700#M9747</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;, change how you get the AeccApplication and you will never need to worry about the version number again. From the C3DReports source code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;    Public Shared ReadOnly Property AeccXApplication() As AeccXUiLand.IAeccApplication
        Get
            If (_aeccXApplication Is Nothing) Then
                Dim acadApp As Autodesk.AutoCAD.Interop.IAcadApplication
                acadApp = CType(AcMgApp.Application.AcadApplication, Autodesk.AutoCAD.Interop.IAcadApplication)

                _aeccXApplication = New AeccXUiLand.AeccApplication
                _aeccXApplication.Init(CType(acadApp, Autodesk.AutoCAD.Interop.AcadApplication))
            End If
            Return _aeccXApplication
        End Get
    End Property&lt;/PRE&gt;
&lt;P&gt;Or, using c#, this is what I've been using for many years now:&lt;/P&gt;
&lt;PRE&gt;        public AeccApplication AeccApp
        {
            get
            {
                if (aeccApp == null)
                {
                    aeccApp = new AeccApplication();
                    aeccApp.Init((AcadApplication)Autodesk.AutoCAD.ApplicationServices.Application.AcadApplication);
                }
                return aeccApp;
            }
        }&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 May 2019 13:32:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/8775700#M9747</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2019-05-07T13:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: AeccXUiLand.AeccApplication</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/8775734#M9748</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 13:46:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/8775734#M9748</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-07T13:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: AeccXUiLand.AeccApplication</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/8775736#M9749</link>
      <description>&lt;P&gt;This is great. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 13:46:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/8775736#M9749</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-07T13:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: AeccXUiLand.AeccApplication</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/8793693#M9750</link>
      <description>&lt;P&gt;Hi Jeff,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for this. I'm a little confused with the details, What is AeccXUiLand? Is it a substitute for Autodesk.AECC.Interop.UiLand?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For &lt;STRONG&gt;Autodesk.AECC.Interop.UiSurvey.AeccSurveyApplication&lt;/STRONG&gt;, this is what I've been using:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim oAeccSurveyApp As Object = Nothing&lt;BR /&gt;Dim oAeccSurveyDoc As Object = Nothing&lt;BR /&gt;Dim oAeccSurveyDB As Autodesk.AECC.Interop.Survey.AeccSurveyDatabase = Nothing&lt;BR /&gt;Dim oAcadApp As Autodesk.AutoCAD.Interop.AcadApplication = Nothing&lt;BR /&gt;Dim sKeyAcadProfiles As String = HostApplicationServices.Current.UserRegistryProductRootKey&lt;BR /&gt;If (sKeyAcadProfiles.Contains("R20.1\ACAD-F000")) Then m_sAeccSvAppProgId = "AeccXUiSurvey.AeccSurveyApplication.10.5"&lt;BR /&gt;' more If statements here for other versions&lt;BR /&gt;oAcadApp = ApplicationServices.Application.AcadApplication
oAeccSurveyApp = oAcadApp.GetInterfaceObject(m_sAeccSvAppProgId)&lt;BR /&gt;oAeccSurveyDoc = oAeccSurveyApp.ActiveDocument&lt;BR /&gt;oAeccSurveyDB = oAeccSurveyApp.ActiveDocument.Database&lt;/PRE&gt;
&lt;P&gt;But the problem I have is if I used &lt;STRONG&gt;Autodesk.AECC.Interop.UiSurvey.AeccSurveyApplication&lt;/STRONG&gt; instead of &lt;STRONG&gt;Object&amp;nbsp;&lt;/STRONG&gt;in the above code, the resulting DLL would only work in the version I was developing for (2016). Changing to Object allows the DLL to work with multiple versions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 20:05:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/8793693#M9750</guid>
      <dc:creator>GTVic</dc:creator>
      <dc:date>2019-05-15T20:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: AeccXUiLand.AeccApplication</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/8793931#M9751</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69236"&gt;@GTVic&lt;/a&gt;&amp;nbsp; the AeccXUiLand is what the developers at Autodesk called in their Imports in the C3DReport code:&lt;/P&gt;
&lt;P&gt;Imports AeccXUiLand = Autodesk.AECC.Interop.UiLand&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is what I use for the SurveyApplication, no if statements for versions needed:&lt;/P&gt;
&lt;PRE&gt;    public sealed class AeccSurvAppConnection
    {
        private AeccSurveyApplication survApp = null;
        public AeccSurvAppConnection() { }

        public AeccSurveyApplication SurvApp
        {
            get
            {
                if (survApp == null)
                {
                    survApp = new AeccSurveyApplication();
                    survApp.Init((AcadApplication)Autodesk.AutoCAD.ApplicationServices.Application.AcadApplication);
                }
                return survApp;
            }
        }

        public AeccSurveyDocument SurvDoc
        {
            get 
            { 
                return (AeccSurveyDocument)SurvApp.ActiveDocument; 
            }
        }

        public AeccSurveyDatabase SurvDb
        {
            get
            {
                return (AeccSurveyDatabase)SurvApp.ActiveDocument.Database;
            }
        }
    }&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 May 2019 22:44:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/8793931#M9751</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2019-05-15T22:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: AeccXUiLand.AeccApplication</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/8813990#M9752</link>
      <description>&lt;P&gt;Hi Jeff,&lt;/P&gt;
&lt;P&gt;Thanks for the post. I wasn't successful under my deadline with a complicated project, maybe I'll put together a simple sample project that does some basic operations and post it here and if we get it working could be useful as a template for future projects.&lt;/P&gt;
&lt;P&gt;Greg&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 21:09:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/8813990#M9752</guid>
      <dc:creator>GTVic</dc:creator>
      <dc:date>2019-05-24T21:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: AeccXUiLand.AeccApplication</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/9174351#M9753</link>
      <description>&lt;P&gt;Boa Tarde,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Meu nome é João&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Desenvolvi para uso próprio, em vba, no Autocad civil 3d 2019, um pequeno aplicativo.&lt;/P&gt;&lt;P&gt;Roda perfeitamente no 2019, mas. não funciona em nenhuma outra versão, diz erro em tempo de execução&lt;/P&gt;&lt;P&gt;tipos incompatíveis,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Const sAppName = "AeccXUiLand.AeccApplication.13.0"&lt;BR /&gt;Set g_oCivilApp = oApp.GetInterfaceObject(sAppName)&lt;BR /&gt;Set g_oDocument = g_oCivilApp.ActiveDocument&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;pode me ajudar?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;João Gonçalo&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 21:10:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/9174351#M9753</guid>
      <dc:creator>joaogoncalosantos</dc:creator>
      <dc:date>2019-11-29T21:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: AeccXUiLand.AeccApplication</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/9174411#M9754</link>
      <description>&lt;P&gt;VBA Code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;Dim m_Id As String
Dim Version as String

Version = ThisDrawing.Application.Version
m_Id = ""

If (Instr(Version, "19.0") &amp;gt; 0) Then m_Id = "10.0" ' 2013
If (Instr(Version, "19.1") &amp;gt; 0) Then m_Id = "10.3" ' 2014
If (Instr(Version, "20.0") &amp;gt; 0) Then m_Id = "10.4" ' 2015
If (Instr(Version, "20.1") &amp;gt; 0) Then m_Id = "10.5" ' 2016
If (Instr(Version, "21.0") &amp;gt; 0) Then m_Id = "11.0" ' 2017
If (Instr(Version, "22.0") &amp;gt; 0) Then m_Id = "12.0" ' 2018
If (Instr(Version, "23.0") &amp;gt; 0) Then m_Id = "13.0" ' 2019
If (Instr(Version, "23.1") &amp;gt; 0) Then m_Id = "13.2" ' 2020

If m_Id &amp;lt;&amp;gt; "" Then
    Set g_oCivilApp = oApp.GetInterfaceObject("AeccXUiLand.AeccApplication." &amp;amp; m_Id)
    Set g_oSurveyApp = oApp.GetInterfaceObject("AeccXUiSurvey.AeccSurveyApplication." &amp;amp; m_Id)
    Set g_oCivilDocument = g_oCivilApp.ActiveDocument 
    Set g_oSurveyDocument = g_oSurveyApp.ActiveDocument 
End If
&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 29 Nov 2019 22:19:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/9174411#M9754</guid>
      <dc:creator>GTVic</dc:creator>
      <dc:date>2019-11-29T22:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: AeccXUiLand.AeccApplication</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/9174491#M9755</link>
      <description>&lt;P&gt;Obrigado pela ajuda, só mais uma pergunta, onde devo adicionar este código?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;João Gonçalo&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2019 00:43:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/9174491#M9755</guid>
      <dc:creator>joaogoncalosantos</dc:creator>
      <dc:date>2019-11-30T00:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: AeccXUiLand.AeccApplication</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/10125428#M9757</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/32637"&gt;@Jeff_M&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This solution has been working well for a while...&lt;/P&gt;&lt;P&gt;But, when C3D 2021 is installed, it stopped working:&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;LI-CODE lang="csharp"&gt;public static AeccApp CurrAeccAppInstance()
{
Autodesk.AECC.Interop.UiLand.AeccApplication retVal = new Autodesk.AECC.Interop.UiLand.AeccApplication();
if(retVal != null)
{
retVal.Init((Autodesk.AutoCAD.Interop.AcadApplication)Autodesk.AutoCAD.ApplicationServices.Application.AcadApplication);
}
return retVal;
}&lt;/LI-CODE&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;It throws the following&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;LI-CODE lang="c"&gt;'acad.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Program Files\Autodesk\AutoCAD 2021\C3D\Autodesk.AECC.Interop.UiLand.dll'. Module was built without symbols.

...
"Retrieving the COM class factory for component with CLSID {E933000F-0085-4186-8DF9-3D5372B7DC57} failed due to the following error: 8007045a A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A)."

dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A).
at Civil3DPluggin.Commands.CurrAeccAppInstance() in C:\Development\ACAD_ObjectARX\Civil3DPluggin\Civil3DPluggin\Commands.cs:line 1607
&amp;gt;&amp;gt; Autodesk.AECC.Interop.UiLand.AeccApplication retVal = new Autodesk.AECC.Interop.UiLand.AeccApplication(); &amp;lt;&amp;lt;
Exception thrown: 'System.IO.FileLoadException' in Civil3DPluggin.dll&lt;/LI-CODE&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;The DLL is installed, The registry key's are there,&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;it should be OK...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But there is an IO exception loading the DLL, it seems like...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any Ideas would be greatly appreciated...&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;JR&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 02:54:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/10125428#M9757</guid>
      <dc:creator>jrWB953</dc:creator>
      <dc:date>2021-03-03T02:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: AeccXUiLand.AeccApplication</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/10127262#M9758</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10454499"&gt;@jrWB953&lt;/a&gt;&amp;nbsp;I've been using the same process for years without issues. Still works in C3D 2021 for me. If this is occurring when you are wanting to run a Debug session, make sure the option to "Enable Just My Code" is checked.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-03-03_8-46-14.jpg" style="width: 591px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/888164i6CFDEF2BE23B74DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-03-03_8-46-14.jpg" alt="2021-03-03_8-46-14.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 16:48:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/10127262#M9758</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2021-03-03T16:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: AeccXUiLand.AeccApplication</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/10140190#M9759</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/32637"&gt;@Jeff_M&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply...&lt;/P&gt;&lt;P&gt;I did that...It did not change the outcome.&lt;/P&gt;&lt;P&gt;I've removed all the libraries and re-added.&lt;/P&gt;&lt;P&gt;Completely removed C3D-2020, ArcX libs 2020.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Error changed to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Retrieving the COM class factory for component with CLSID {E933000F-0085-4186-8DF9-3D5372B7DC57} failed due to the following error: 8007045a A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A)."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"E933000F-0085-4186-8DF9-3D5372B7DC57" -&amp;gt;&amp;nbsp;C:\Program Files\Autodesk\AutoCAD 2021\C3D\AeccXUiLand.dll&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm out of ideas at this point...&lt;/P&gt;&lt;P&gt;Any insight would be really appreciated...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 21:10:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/10140190#M9759</guid>
      <dc:creator>jrWB953</dc:creator>
      <dc:date>2021-03-08T21:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: AeccXUiLand.AeccApplication</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/10140575#M9760</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10454499"&gt;@jrWB953&lt;/a&gt;&amp;nbsp;Any chance you can share the project, or a stripped down version that still exhibits the same issue?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 23:50:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/10140575#M9760</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2021-03-08T23:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: AeccXUiLand.AeccApplication</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/10140595#M9761</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/32637"&gt;@Jeff_M&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for replying,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, I can't share the whole thing...&lt;/P&gt;&lt;P&gt;But, I can try to make a Slim-down...&lt;/P&gt;&lt;P&gt;I guess the one thing I can try is to create a new project from scratch and add the code in...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The main portion, that fails, looks like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;using IAeccDoc = Autodesk.AECC.Interop.UiLand.IAeccDocument;
using IAeccDB = Autodesk.AECC.Interop.Land.IAeccDatabase;
using AeccApp = Autodesk.AECC.Interop.UiLand.AeccApplication;
using IAeccApp = Autodesk.AECC.Interop.UiLand.IAeccApplication;
using IAeccUDPClass = Autodesk.AECC.Interop.Land.AeccUserDefinedPropertyClassifications;
using IAeccUDP = Autodesk.AECC.Interop.Land.AeccUserDefinedProperty;
...

        // Modal Command with localized name
        public int SummaryTables(String fileName, bool includecosts = false, bool clean = false) 
        {
...
             IAeccDB aeccdb = IAeccDBInstance;
           // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
        }

        // ***************************************************************************************
        [CommandMethod(CMD_GROUP_EDSA, CMD_SUMMARY, "SUMMARY", CommandFlags.Modal)]
        public void SummaryTables() 
        {   // Should be called as : _COGOSUMBYDKS 
            try
            {
                SummaryTables(MISSING_PARAMETER_INDICATOR);
            }
            catch (System.Exception ex)
            {
                HandleException(ex, CMD_SUMMARY);
            }
        }

        [LispFunction(CMD_SUMMARY, "SUMMARYLspId")]
        public int SummaryTableslLsp(ResultBuffer args) 
        {   // Should be called as : (PARCELSUM "C:/TEMP/XXXCogo.html")
            int retVal = 0;
            String stringParam1 = MISSING_PARAMETER_INDICATOR;
            try
            {
                if (args != null)
                {
                    Array argsArray = args.AsArray();
                    if (argsArray.Length &amp;gt; 0)
                    { stringParam1 = Convert.ToString(((TypedValue)(argsArray.GetValue(0))).Value); }
                }
                retVal = SummaryTables(stringParam1);
            }
            catch (System.Exception ex)
            {
                HandleException(ex, "_COGOSUMBYDKS(lsp)");
            }
            return retVal;
        }

...
        public static AeccApp CurrAeccAppInstance()
        {
            Autodesk.AECC.Interop.UiLand.AeccApplication retVal = new Autodesk.AECC.Interop.UiLand.AeccApplication();
// This is what fails^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            if(retVal != null)
            {
                retVal.Init((Autodesk.AutoCAD.Interop.AcadApplication)Autodesk.AutoCAD.ApplicationServices.Application.AcadApplication);
            }
            return retVal;
        }

        public static IAeccDB CurrIAeccDBInstance()
        {
            IAeccDB retVal = null;
            AeccApp currapp = CurrAeccAppInstance();
            if (currapp != null)
            {
                IAeccDoc currdoc = (IAeccDoc)currapp.ActiveDocument;
                if (currdoc != null)
                {
                    retVal = (IAeccDB)currdoc.GetType().GetProperty("Database").GetValue(currdoc, null);
                }
            }
            return retVal;
        }

        // ****************************************************************************
        private AeccApp _AeccApp = null;
        protected AeccApp AeccAppInstance
        {
            get
            {
                if (_AeccApp == null)
                { // https://forums.autodesk.com/t5/civil-3d-customization/aeccxuiland-aeccapplication/td-p/8775478
                    _AeccApp = CurrAeccAppInstance();
                }
                return _AeccApp;
            }
        }

        protected IAeccDoc AeccDocInstance
        {
            get
            {
                if (AeccAppInstance != null)
                { return (IAeccDoc)AeccAppInstance.ActiveDocument; }
                return null;
            }
        }

        private IAeccDB _AeccDB = null;
        protected IAeccDB IAeccDBInstance
        {
            get
            {
                if (_AeccDB == null)
                {
                    IAeccDoc currdoc = AeccDocInstance;
                    if (currdoc != null)
                    {
                        _AeccDB = (IAeccDB)currdoc.GetType().GetProperty("Database").GetValue(currdoc, null);
                    }
                }
                return _AeccDB;

            }
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 00:05:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/10140595#M9761</guid>
      <dc:creator>jrWB953</dc:creator>
      <dc:date>2021-03-09T00:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: AeccXUiLand.AeccApplication</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/10145383#M9762</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/32637"&gt;@Jeff_M&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sooo...&lt;/P&gt;&lt;P&gt;I removed Visual Studio, ObjectArcX, Wizzards,&amp;nbsp; and all the AutoCAD stuff.&lt;/P&gt;&lt;P&gt;Re-Installed everything, rebuilt the project from scratch both manually and using the Wizzards.&lt;/P&gt;&lt;P&gt;Still the exact same problem, which took quite a while.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked all include paths and all the usual suspects...Still Nada..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a BareBones project, which display's the same symptom...&lt;/P&gt;&lt;P&gt;So if anyone has any ideas I would be eternally grateful.&lt;/P&gt;&lt;P&gt;&amp;nbsp; JR&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 14:16:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/10145383#M9762</guid>
      <dc:creator>jrWB953</dc:creator>
      <dc:date>2021-03-10T14:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: AeccXUiLand.AeccApplication</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/10145676#M9763</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10454499"&gt;@jrWB953&lt;/a&gt;&amp;nbsp;have you installed the updates for C3D 2021? Your barebones loads and runs until it tries the get the AeccDatabase. It then fails, but I recalled also running into that sometime ago. We fixed that issue by not using a variable set to the ActiveDocument, instead using this:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;        public static AeccDB CurrAeccDBInstance()
        {
            AeccDB retVal = null;
            AeccApp currapp = CurrAeccAppInstance();
            if (currapp != null)
            {
                retVal = (AeccDB)currapp.ActiveDocument.Database;
            }
            return retVal;
        }
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once I made that change (I also removed all Interface refences, hence the AeccDB instead of IAeccDB that you had), it runs right through:&lt;/P&gt;
&lt;P&gt;NETLOAD&lt;BR /&gt;Command: MYCOMMAND&lt;BR /&gt;Hello, this is your first command.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 15:47:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/10145676#M9763</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2021-03-10T15:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: AeccXUiLand.AeccApplication</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/10145696#M9764</link>
      <description>&lt;P&gt;Obrigado a todos, consegui resolver com ajuda de vocês.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Aproveitando o momento, uso o VBA para desenvolver o aplicativo, como faço pra acessar os lados de uma parcela e extrair os azimutes e distâncias e adicionar em uma listbox?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Obrigado&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;João Gonçalo&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 15:56:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/10145696#M9764</guid>
      <dc:creator>joaogoncalosantos</dc:creator>
      <dc:date>2021-03-10T15:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: AeccXUiLand.AeccApplication</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/10146098#M9765</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/32637"&gt;@Jeff_M&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for looking into this ....&lt;/P&gt;&lt;P&gt;I still get an error:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;public static AeccApp CurrAeccAppInstance()
{
&amp;gt;&amp;gt;&amp;gt;	Autodesk.AECC.Interop.UiLand.AeccApplication retVal = new Autodesk.AECC.Interop.UiLand.AeccApplication();
	if (retVal != null)
	{
		retVal.Init((Autodesk.AutoCAD.Interop.AcadApplication)Autodesk.AutoCAD.ApplicationServices.Application.AcadApplication);
	}
	return retVal;
}


CLSID {E933000F-0085-4186-8DF9-3D5372B7DC57} -&amp;gt; C:\Program Files\Autodesk\AutoCAD 2021\C3D\AeccXUiLand.dll
************** Exception Text **************
System.IO.FileLoadException: Retrieving the COM class factory for component with CLSID {E933000F-0085-4186-8DF9-3D5372B7DC57} failed due to the following error: 8007045a A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A).
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean&amp;amp; canBeCached, RuntimeMethodHandleInternal&amp;amp; ctor, Boolean&amp;amp; bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark&amp;amp; stackMark)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at Civil3DBareBones.MyCommands.CurrAeccAppInstance() in C:\Development\Civil2021\Civil3DBareBones\Civil3DBareBones\myCommands.cs:line 73
   at Civil3DBareBones.MyCommands.CurrAeccDBInstance() in C:\Development\Civil2021\Civil3DBareBones\Civil3DBareBones\myCommands.cs:line 99
   at Civil3DBareBones.MyCommands.MyCommand() in C:\Development\Civil2021\Civil3DBareBones\Civil3DBareBones\myCommands.cs:line 50
   at Autodesk.AutoCAD.Runtime.CommandClass.InvokeWorker(MethodInfo mi, Object commandObject, Boolean bLispFunction)
   at Autodesk.AutoCAD.Runtime.CommandClass.InvokeWorkerWithExceptionFilter(MethodInfo mi, Object commandObject, Boolean bLispFunction)
   at Autodesk.AutoCAD.Runtime.PerDocumentCommandClass.Invoke(MethodInfo mi, Boolean bLispFunction)
   at Autodesk.AutoCAD.Runtime.CommandClass.CommandThunk.Invoke()



#region Assembly Autodesk.AECC.Interop.UiLand, Version=13.3.0.0, Culture=neutral, PublicKeyToken=null
// C:\Program Files\Autodesk\AutoCAD 2021\C3D\Autodesk.AECC.Interop.UiLand.dll
#endregion

using System.Runtime.InteropServices;

namespace Autodesk.AECC.Interop.UiLand
{
    [CoClass(typeof(AeccApplicationClass))]
    [Guid("E9330002-0085-4186-8DF9-3D5372B7DC57")]
    public interface AeccApplication : IAeccApplication
    {
    }
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 10 Mar 2021 18:07:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/aeccxuiland-aeccapplication/m-p/10146098#M9765</guid>
      <dc:creator>jrWB953</dc:creator>
      <dc:date>2021-03-10T18:07:11Z</dc:date>
    </item>
  </channel>
</rss>

