<?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: AutoLoad the dll on AutoCAD startup in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/13814674#M85763</link>
    <description>&lt;P&gt;My XML viewer app (on Android) can't open the file, and displays the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This page contains the following errors:&lt;/P&gt;&lt;P&gt;error on line 32 at column 20: Opening and ending tag mismatch: Command line 28 and Commands&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Sep 2025 14:53:29 GMT</pubDate>
    <dc:creator>ActivistInvestor</dc:creator>
    <dc:date>2025-09-17T14:53:29Z</dc:date>
    <item>
      <title>AutoLoad the dll on AutoCAD startup</title>
      <link>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/12684215#M4650</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I have created a small plugin in AutoCAD using c# and right now I am using netload to load my dll into AutoCAD.&lt;/P&gt;&lt;P&gt;But I want that when I start my AutoCAD the DLL will automatically load. I tried to create a bundle file including the PackageContents.xml file and place my dll into the bundle folder. But the DLL is not loading automatically.&lt;/P&gt;&lt;P&gt;If anyone has any idea then please help me.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 14:12:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/12684215#M4650</guid>
      <dc:creator>prem_kumar8SXZJ</dc:creator>
      <dc:date>2024-04-03T14:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLoad the dll on AutoCAD startup</title>
      <link>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/12684253#M4651</link>
      <description>&lt;P&gt;Where do you have the bundle folder stored? In one of the areas that AutoCAD looks for them? Your personal area is located at %AppData%\Autodesk\ApplicationPlugins&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 14:23:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/12684253#M4651</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2024-04-03T14:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLoad the dll on AutoCAD startup</title>
      <link>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/12684363#M4652</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;In &lt;A href="https://forums.autodesk.com/t5/net/autoloader-not-working/m-p/8928667/highlight/true#M63286" target="_blank" rel="noopener"&gt;this reply&lt;/A&gt;, an example of minimalist PackageContents.xml file for autoloading a .NET DLL.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 14:55:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/12684363#M4652</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2024-04-03T14:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLoad the dll on AutoCAD startup</title>
      <link>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/12684887#M4653</link>
      <description>&lt;P&gt;Hi, Where I can find this product code and upgrade code? So that I can include them in the PackageContents.xml file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ProductCode="{83F90232-3CEB-40F0-88BE-2638C843CEA5}"
UpgradeCode="{B31D4C65-464B-4460-9E9F-B36D7B1C453A}"&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Apr 2024 18:53:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/12684887#M4653</guid>
      <dc:creator>prem_kumar8SXZJ</dc:creator>
      <dc:date>2024-04-03T18:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLoad the dll on AutoCAD startup</title>
      <link>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/12684894#M4654</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14420845"&gt;@prem_kumar8SXZJ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi, Where I can find this product code and upgrade code? So that I can include them in the PackageContents.xml file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ProductCode="{83F90232-3CEB-40F0-88BE-2638C843CEA5}"
UpgradeCode="{B31D4C65-464B-4460-9E9F-B36D7B1C453A}"&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You do not "find" them, you create them (there's a "Create GUID" in the Visual Studio Tools menu and many other on the web).&lt;/P&gt;
&lt;P&gt;ProductCode shoud be changed a each new version. UpgradeCode should never be changed.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 18:57:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/12684894#M4654</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2024-04-03T18:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLoad the dll on AutoCAD startup</title>
      <link>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/12684966#M4655</link>
      <description>&lt;P&gt;Hi I have created a product code using GUID and Created a folder with a .bundle file and also created all the sub folders and PackageContents.xml file and Paste that bundle folder in&amp;nbsp;C:\Program Files (x86)\Autodesk\ApplicationPlugins\Trapeze.bundle this directory, But still, my dll is not loading why?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 19:35:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/12684966#M4655</guid>
      <dc:creator>prem_kumar8SXZJ</dc:creator>
      <dc:date>2024-04-03T19:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLoad the dll on AutoCAD startup</title>
      <link>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/12685125#M4656</link>
      <description>&lt;P&gt;The 'Trapeze.bundle' was just an example you have to adapt to suit your needs.&lt;/P&gt;
&lt;P&gt;Name the .bundle as you need (typically as you project), create new GUIDs for both the ProductCode and the UpgradeCode, change the application Name, Set the SeriesMin and SeriesMax value to the AutoCAD releases you want your app to run on, change the AppName and, for sure, the ModuleName.&lt;/P&gt;
&lt;P&gt;You should read &lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=GUID-5E50A846-C80B-4FFD-8DD3-C20B22098008" target="_blank" rel="noopener"&gt;this topic&lt;/A&gt; and the related references.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 20:51:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/12685125#M4656</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2024-04-03T20:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLoad the dll on AutoCAD startup</title>
      <link>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/12685877#M4657</link>
      <description>&lt;P&gt;Hi, I have made all the changes and when I open AutoCAD it also shows the message "Stretch Utility has been successfully loaded" where Stretch Utility is my Application name. But then again when I give the command to run some functionality that I written in the Dll, It is saying Unknown command. If I use Netload and then use the command everything is working fine. I don't understand what is going on with the bundle file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;ApplicationPackage
  SchemaVersion="1.0"
  AppVersion="1.0.0"
  ProductCode="{04A0B285-1593-4604-B4B1-714A231770CD}"
  Name="Stretch Utility"
  AutodeskProduct="AutoCAD"
  ProductType="Application"&amp;gt;
  &amp;lt;Components&amp;gt;
    &amp;lt;RuntimeRequirements OS="Win32|Win64" Platform="AutoCAD|AutoCAD*" SeriesMin="R24.3" SeriesMax="R24.3" /&amp;gt;
    &amp;lt;ComponentEntry
      AppName="Stretch Utility"
      Version="1.0.0"
      ModuleName="./Contents/AutoCAD_3DProject.dll"
      LoadOnAutoCADStartup="True"&amp;gt;
    &amp;lt;/ComponentEntry&amp;gt;
  &amp;lt;/Components&amp;gt;
&amp;lt;/ApplicationPackage&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 04 Apr 2024 06:40:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/12685877#M4657</guid>
      <dc:creator>prem_kumar8SXZJ</dc:creator>
      <dc:date>2024-04-04T06:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLoad the dll on AutoCAD startup</title>
      <link>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/12685956#M4658</link>
      <description>&lt;P&gt;Do not care about your application Status is "Unknown App" in the application manager dialog. This is due to the fact you application is not one from the Autodesk Application Store.&lt;/P&gt;
&lt;P&gt;Does your application contains a class which implements IExtensionApplication? If so, your issue may be due to what does the Initialize method because this method is not called in the same context when the application is autoloaded or when it is netloaded.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 07:11:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/12685956#M4658</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2024-04-04T07:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLoad the dll on AutoCAD startup</title>
      <link>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/12686005#M4659</link>
      <description>&lt;P&gt;Yes, my class does&amp;nbsp;&lt;SPAN&gt;implement IExtensionApplication because I am creating a ribbon tab and some buttons. I just removed the code for the ribbon tab and now it is loading perfectly. Thanks.&lt;BR /&gt;One more question is If I don't use the IExtensionApplication then how I am going to create a ribbon tab and some buttons? Is it through cuix file or there is any other way?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 07:32:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/12686005#M4659</guid>
      <dc:creator>prem_kumar8SXZJ</dc:creator>
      <dc:date>2024-04-04T07:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLoad the dll on AutoCAD startup</title>
      <link>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/12686124#M4660</link>
      <description>&lt;P&gt;You can use IExtensionApplication, but you have to take care of the context the Initialize() method is run.&lt;/P&gt;
&lt;P&gt;Typically, you just subscribe to the Application.Idle event in the Initialize method and do your stuff in the event handler to ensure the code is not run before AutoCAD completed its own initialization.&lt;/P&gt;
&lt;P&gt;Here's a example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;internal class ExtensionApplication : IExtensionApplication
{
    public void Initialize()
    {
        Application.Idle += OnIdle;
    }

    private void OnIdle(object? sender, EventArgs e)
    {
        var doc = Application.DocumentManager.MdiActiveDocument;
        if (doc != null)
        {
            Application.Idle -= OnIdle;
            try
            {
                // Do the initialization stuff here.
            }
            catch (System.Exception ex)
            {
                doc.Editor.WriteMessage($"\nInitilization error: {ex.Message}");
            }
        }
    }

    public void Terminate()
    { }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also use this &lt;A href="https://github.com/ActivistInvestor/AcMgdUtility/blob/main/ExtensionApplicationAsync.cs" target="_blank" rel="noopener"&gt;ExtensionApplicationAsync&lt;/A&gt; abstract class from &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4476837"&gt;@ActivistInvestor&lt;/a&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 12:15:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/12686124#M4660</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2024-04-05T12:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLoad the dll on AutoCAD startup</title>
      <link>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/12687056#M4661</link>
      <description>&lt;P&gt;Okay, Thanks for this&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 14:33:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/12687056#M4661</guid>
      <dc:creator>prem_kumar8SXZJ</dc:creator>
      <dc:date>2024-04-04T14:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLoad the dll on AutoCAD startup</title>
      <link>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/13814385#M85762</link>
      <description>&lt;P&gt;My apologies, I know this is an old topic, but I'm still struggling with this same issue too. I have tried several combinations and followed plenty of manuals in setting up the&amp;nbsp;PackageContents.xml file, even the one above, to no avail. Is there anyone that can help loading my DLL in Civil 3D specific. I've even tried the just AUTOCAD one too. I've attched my file for scrutiny.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 11:34:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/13814385#M85762</guid>
      <dc:creator>OttoDV</dc:creator>
      <dc:date>2025-09-17T11:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLoad the dll on AutoCAD startup</title>
      <link>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/13814674#M85763</link>
      <description>&lt;P&gt;My XML viewer app (on Android) can't open the file, and displays the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This page contains the following errors:&lt;/P&gt;&lt;P&gt;error on line 32 at column 20: Opening and ending tag mismatch: Command line 28 and Commands&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 14:53:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/13814674#M85763</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2025-09-17T14:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLoad the dll on AutoCAD startup</title>
      <link>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/13814862#M85764</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7024387"&gt;@OttoDV&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I fixed your tags (added 3 "/" marks), I did not check anything else.&lt;/P&gt;&lt;P&gt;Attached is XML&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 17:21:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/13814862#M85764</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2025-09-17T17:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: AutoLoad the dll on AutoCAD startup</title>
      <link>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/13815344#M85765</link>
      <description>&lt;P&gt;Perhaps this will solve the issue&amp;nbsp; . . . at least for file structure ?&lt;/P&gt;&lt;P&gt;Summary of Changes:&lt;BR /&gt;1. Fixed invalid nesting of &amp;lt;Command&amp;gt; tags.&lt;BR /&gt;2. Added missing closing tags for &amp;lt;RuntimeRequirements&amp;gt; and &amp;lt;Components&amp;gt;.&lt;BR /&gt;3. Removed unnecessary spaces in attributes.&lt;BR /&gt;4. Added comments for clarity.&lt;BR /&gt;5. Ensured the XML structure is valid and consistent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;ApplicationPackage
   SchemaVersion="1.0"
   AppVersion="1.0.1"
   ProductCode="{79A0236D-3C13-47FB-8BC0-C84EC8A3656E}"
   UpgradeCode="{AD0E3688-98E2-440E-8F51-D4EA8CC1AC24}"
   Name="RSA Cogo Importer"
   Description="A custom plugin for Civil 3D to import RSA Cogo points"
   AutodeskProduct="AutoCAD"
   ProductType="Application"&amp;gt;

   &amp;lt;!-- Runtime Requirements --&amp;gt;
   &amp;lt;Components&amp;gt;
      &amp;lt;RuntimeRequirements
         OS="Win64"
         Platform="AutoCAD|AutoCAD*"
         SeriesMin="R25.0"
         SeriesMax="R26.3"&amp;gt;
      &amp;lt;/RuntimeRequirements&amp;gt;

      &amp;lt;!-- Component Entry --&amp;gt;
      &amp;lt;ComponentEntry
         AppName="RSA_Cogo_importer"
         Version="1.0.1"
         ModuleName=".\Contents\RSA_Cogo_importer.dll"
         LoadOnAutoCADStartup="True"&amp;gt;

         &amp;lt;!-- Commands --&amp;gt;
         &amp;lt;Commands GroupName="MyPluginCommands"&amp;gt;
            &amp;lt;Command
               Local="RSACSVIMPORT"
               Global="RSACSVIMPORT"
               StartupCommand="True" /&amp;gt;
            &amp;lt;Command
               Local="RSAUNLOADDIA"
               Global="RSAUNLOADDIA"
               StartupCommand="True" /&amp;gt;
         &amp;lt;/Commands&amp;gt;
      &amp;lt;/ComponentEntry&amp;gt;
   &amp;lt;/Components&amp;gt;
&amp;lt;/ApplicationPackage&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Stay well,&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 01:02:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autoload-the-dll-on-autocad-startup/m-p/13815344#M85765</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2025-09-18T01:02:14Z</dc:date>
    </item>
  </channel>
</rss>

