<?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: .NET plugin not loading using NETLOAD in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13753455#M85558</link>
    <description>&lt;P&gt;Why you need to use&amp;nbsp;&lt;STRONG&gt;NETLOAD&lt;/STRONG&gt;&amp;nbsp;if you are using &lt;STRONG&gt;AppBundle&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How your &lt;STRONG&gt;PackageContents.xml&amp;nbsp;&lt;/STRONG&gt;looks like?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I'm using in my template and works fine for AutoCAD Addins:&amp;nbsp;&lt;A href="https://github.com/ricaun-io/ricaun.Revit.Templates" target="_blank" rel="noopener"&gt;https://github.com/ricaun-io/ricaun.Revit.Templates&lt;/A&gt;&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" AutodeskProduct="AutoCAD" Name="AutoCADAddin" AppVersion="0.0.0" ProductType="Application" &amp;gt;
  &amp;lt;CompanyDetails Name="ricaun" /&amp;gt;
  &amp;lt;Components Description="AutoCAD 2019-2020"&amp;gt;
    &amp;lt;RuntimeRequirements OS="Win64" Platform="AutoCAD*" SeriesMin="R23.0" SeriesMax="R23.9"/&amp;gt;
    &amp;lt;ComponentEntry AppName="AutoCADAddin" ModuleName="./2019/AutoCADAddin.dll" /&amp;gt;
  &amp;lt;/Components&amp;gt;
  &amp;lt;Components Description="AutoCAD 2021-2024"&amp;gt;
    &amp;lt;RuntimeRequirements OS="Win64" Platform="AutoCAD*" SeriesMin="R24.0" SeriesMax="R24.9"/&amp;gt;
    &amp;lt;ComponentEntry AppName="AutoCADAddin" ModuleName="./2021/AutoCADAddin.dll" /&amp;gt;
  &amp;lt;/Components&amp;gt;
  &amp;lt;Components Description="AutoCAD 2025+"&amp;gt;
    &amp;lt;RuntimeRequirements OS="Win64" Platform="AutoCAD*" SeriesMin="R25.0" /&amp;gt;
    &amp;lt;ComponentEntry AppName="AutoCADAddin" ModuleName="./2025/AutoCADAddin.dll" /&amp;gt;
  &amp;lt;/Components&amp;gt;
&amp;lt;/ApplicationPackage&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Aug 2025 00:23:35 GMT</pubDate>
    <dc:creator>ricaun</dc:creator>
    <dc:date>2025-08-05T00:23:35Z</dc:date>
    <item>
      <title>.NET plugin not loading using NETLOAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13750343#M85551</link>
      <description>&lt;P&gt;I have a user that is currently unable to use my plugin. I have had &lt;A href="https://forums.autodesk.com/t5/net-forum/what-are-some-troubleshooting-steps-for-why-a-dll-will-not/td-p/13684296" target="_blank" rel="noopener"&gt;similar&lt;/A&gt; problems before related to AutoLoading. But in this case even NetLoad does not load the plugin. This is from a fresh install of AutoCAD 2026 on Windows 11.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The bundle is located at&lt;BR /&gt;C:\Users\username\AppData\Roaming\Autodesk\ApplicationPlugins\MyPlugin.bundle&lt;BR /&gt;&lt;BR /&gt;I tried deleting my plugin's .bundle folder, recreating the .bundle folder. The bundle has a DLL folder which has three .dlls. One is the main plugin .dll while the other two are dependencies. I tried NETLOAD'ing the two dependencies before loading the main plugin, no luck.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So I decided to step back and just try to have the user NETLOAD a .dll with this plugin after uninstalling/reinstalling AutoCAD 2026&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;using System.IO;
using Autodesk.AutoCAD.Runtime;

namespace AutoCAD_2025_Test_Plugin
{
    public class PluginExtension : IExtensionApplication
    {
        public void Initialize()
        {
            // Add your initialization code here

           
        }

        public void Terminate()
        {
            // Add your termination code here
        }
    }
}

/////////////////////seperate files

using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.EditorInput;
using Autodesk.AutoCAD.Runtime;
using AcadApp = Autodesk.AutoCAD.ApplicationServices.Application;

[assembly: CommandClass(typeof(AutoCAD_2025_Test_Plugin.MyCommands))]
[assembly: ExtensionApplication(typeof(AutoCAD_2025_Test_Plugin.PluginExtension))]

namespace AutoCAD_2025_Test_Plugin
{
    public class MyCommands
    {
        // The CommandMethod attribute can be applied to any public  member 
        // function of any public class.
        // The function should take no arguments and return nothing.
        // If the method is an intance member then the enclosing class is 
        // intantiated for each document. If the member is a static member then
        // the enclosing class is NOT intantiated.
        //
        // NOTE: CommandMethod has overloads where you can provide helpid and
        // context menu.

        // Modal Command with localized name
        [CommandMethod("MyGroup", "MyCommand", "MyCommandLocal", CommandFlags.Modal)]
        public void MyCommand() // This method can have any name
        {
            // Put your command code here
            Document doc = AcadApp.DocumentManager.MdiActiveDocument;
            Autodesk.AutoCAD.EditorInput.Editor ed;
            if (doc != null)
            {
                ed = doc.Editor;
                ed.WriteMessage("Hello, this is your first command.");

            }
        }

        // Modal Command with pickfirst selection
        [CommandMethod("MyGroup", "MyPickFirst", "MyPickFirstLocal", CommandFlags.Modal | CommandFlags.UsePickSet)]
        public void MyPickFirst() // This method can have any name
        {
            PromptSelectionResult result = AcadApp.DocumentManager.MdiActiveDocument.Editor.GetSelection();
            if (result.Status == PromptStatus.OK)
            {
                // There are selected entities
                // Put your command using pickfirst set code here
            }
            else
            {
                // There are no selected entities
                // Put your command code here
            }
        }

        // Application Session Command with localized name
        [CommandMethod("MyGroup", "MySessionCmd", "MySessionCmdLocal", CommandFlags.Modal | CommandFlags.Session)]
        public void MySessionCmd() // This method can have any name
        {
            // Put your command code here
        }

        // LispFunction is similar to CommandMethod but it creates a lisp 
        // callable function. Many return types are supported not just string
        // or integer.
        [LispFunction("MyLispFunction", "MyLispFunctionLocal")]
        public int MyLispFunction(ResultBuffer args) // This method can have any name
        {
            // Put your command code here

            // Return a value to the AutoCAD Lisp Interpreter
            return 1;
        }
    }
}

&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;This should be as simple a "plugin" as possible. No other dependencies besides the AutoCAD dependencies and the system. I am able to NETLOAD the .dll for this plugin and run "MyCommand".&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;When I have the user try to NetLoad the .dll that is in their downloads folder they do not get any error that it did not load. But if they run "MyCommand" they get a command not found error.&lt;BR /&gt;&lt;BR /&gt;Any idea's that I should look into for how to solve this? Thank you in advance&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 17:44:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13750343#M85551</guid>
      <dc:creator>nshupeFMPE3</dc:creator>
      <dc:date>2025-08-01T17:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: .NET plugin not loading using NETLOAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13750666#M85552</link>
      <description>&lt;P&gt;Perhaps it is a trusted folder issue? You can confirm that by having the user set the SECURELOAD sysvar to 0 and then trying to NETLOAD the dll.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Aug 2025 01:38:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13750666#M85552</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2025-08-02T01:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: .NET plugin not loading using NETLOAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13752912#M85554</link>
      <description>&lt;P&gt;Thank you for the suggestion. I had the user check this and they said SECURELOAD was set to 1. They set it to 0 and then tried to NETLOAD the "test plugin" .dll again but had the same result.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 15:21:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13752912#M85554</guid>
      <dc:creator>nshupeFMPE3</dc:creator>
      <dc:date>2025-08-04T15:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: .NET plugin not loading using NETLOAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13753014#M85555</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11150561"&gt;@nshupeFMPE3&lt;/a&gt;&amp;nbsp; a écrit&amp;nbsp;:&lt;BR /&gt;
&lt;P&gt;When I have the user try to NetLoad &lt;STRONG&gt;the .dll that is in their downloads folder&lt;/STRONG&gt; they do not get any error that it did not load. But if they run "MyCommand" they get a command not found error.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Did you "&lt;A href="https://www.limilabs.com/blog/unblock-dll-file" target="_blank" rel="noopener"&gt;unblock&lt;/A&gt;" the DLL?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 16:32:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13753014#M85555</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2025-08-04T16:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: .NET plugin not loading using NETLOAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13753121#M85556</link>
      <description>&lt;P&gt;I just tried that on their computer with no luck. Since I had access to their computer I also tried adding&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;C:\Users\username\AppData\Roaming\Autodesk\ApplicationPlugins&lt;BR /&gt;&lt;BR /&gt;to their AutoCAD's trusted locations and moved the .dll there then tried NETLOADing. Still no luck. I also verified that SECURELOAD was set to 0&lt;BR /&gt;&lt;BR /&gt;As I said in the original post they started from a fresh install of AutoCAD 2026. They also uninstalled and reinstalled Friday.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 18:17:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13753121#M85556</guid>
      <dc:creator>nshupeFMPE3</dc:creator>
      <dc:date>2025-08-04T18:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: .NET plugin not loading using NETLOAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13753455#M85558</link>
      <description>&lt;P&gt;Why you need to use&amp;nbsp;&lt;STRONG&gt;NETLOAD&lt;/STRONG&gt;&amp;nbsp;if you are using &lt;STRONG&gt;AppBundle&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How your &lt;STRONG&gt;PackageContents.xml&amp;nbsp;&lt;/STRONG&gt;looks like?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I'm using in my template and works fine for AutoCAD Addins:&amp;nbsp;&lt;A href="https://github.com/ricaun-io/ricaun.Revit.Templates" target="_blank" rel="noopener"&gt;https://github.com/ricaun-io/ricaun.Revit.Templates&lt;/A&gt;&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" AutodeskProduct="AutoCAD" Name="AutoCADAddin" AppVersion="0.0.0" ProductType="Application" &amp;gt;
  &amp;lt;CompanyDetails Name="ricaun" /&amp;gt;
  &amp;lt;Components Description="AutoCAD 2019-2020"&amp;gt;
    &amp;lt;RuntimeRequirements OS="Win64" Platform="AutoCAD*" SeriesMin="R23.0" SeriesMax="R23.9"/&amp;gt;
    &amp;lt;ComponentEntry AppName="AutoCADAddin" ModuleName="./2019/AutoCADAddin.dll" /&amp;gt;
  &amp;lt;/Components&amp;gt;
  &amp;lt;Components Description="AutoCAD 2021-2024"&amp;gt;
    &amp;lt;RuntimeRequirements OS="Win64" Platform="AutoCAD*" SeriesMin="R24.0" SeriesMax="R24.9"/&amp;gt;
    &amp;lt;ComponentEntry AppName="AutoCADAddin" ModuleName="./2021/AutoCADAddin.dll" /&amp;gt;
  &amp;lt;/Components&amp;gt;
  &amp;lt;Components Description="AutoCAD 2025+"&amp;gt;
    &amp;lt;RuntimeRequirements OS="Win64" Platform="AutoCAD*" SeriesMin="R25.0" /&amp;gt;
    &amp;lt;ComponentEntry AppName="AutoCADAddin" ModuleName="./2025/AutoCADAddin.dll" /&amp;gt;
  &amp;lt;/Components&amp;gt;
&amp;lt;/ApplicationPackage&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 00:23:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13753455#M85558</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2025-08-05T00:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: .NET plugin not loading using NETLOAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13753721#M85560</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4176855"&gt;@ricaun&lt;/a&gt;&amp;nbsp; a écrit&amp;nbsp;:&lt;BR /&gt;
&lt;P&gt;Why you need to use&amp;nbsp;&lt;STRONG&gt;NETLOAD&lt;/STRONG&gt;&amp;nbsp;if you are using &lt;STRONG&gt;AppBundle&lt;/STRONG&gt;.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Did you read the original post?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 05:56:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13753721#M85560</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2025-08-05T05:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: .NET plugin not loading using NETLOAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13753799#M85561</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11150561"&gt;@nshupeFMPE3&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try with the following code in the PluginExtension class and check the text screen (F2) content after you try to netload the plugin&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;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
        {
            doc.Editor.WriteMessage("\nAutoCAD_2025_Test_Plugin loaded.\n");
        }
        catch (System.Exception ex)
        {
            doc.Editor.WriteMessage($"\nError: {ex.Message}\n");
        }
    }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 06:36:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13753799#M85561</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2025-08-05T06:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: .NET plugin not loading using NETLOAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13754134#M85563</link>
      <description>&lt;P&gt;I have had similar issue before, in my case it was due to wrong or conflicting version(s) of third party libraries which were used in my code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 09:37:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13754134#M85563</guid>
      <dc:creator>gleeuwdrent</dc:creator>
      <dc:date>2025-08-05T09:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: .NET plugin not loading using NETLOAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13754766#M85565</link>
      <description>&lt;P&gt;Finally we have some progress. I added the Application.Idle code as suggested and the test plugin did load. It printed to the command line during load and then MYCOMMAND worked.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I just connected to the users computer and tried to load my plugin but had no luck. I think I'm going to make a branch of my plugin and remove different things from the plugin startup process just to try and narrow down what could be the problem.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 15:50:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13754766#M85565</guid>
      <dc:creator>nshupeFMPE3</dc:creator>
      <dc:date>2025-08-05T15:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: .NET plugin not loading using NETLOAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13754796#M85566</link>
      <description>&lt;P&gt;What&amp;nbsp;&lt;SPAN&gt;dependencies are you using?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Could have a plugin in your user machine that uses the same dependency and a conflict could explain why is not loading your addin.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 16:14:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13754796#M85566</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2025-08-05T16:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: .NET plugin not loading using NETLOAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13755027#M85568</link>
      <description>&lt;P&gt;Ok I think I know what is causing the problems. Its &lt;A href="https://github.com/WB-nshupe/OPMNetExt" target="_blank" rel="noopener"&gt;OPMNet.&amp;nbsp;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Its a dependency that exposes the ability to add custom Properties to .NET. We use this for multiple pieces of data specific to our workflow.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The difficulty is I'm not as familiar with C++, I was very fortunate that&amp;nbsp; a &lt;A href="https://github.com/cyrillef/OPMNetExt" target="_blank" rel="noopener"&gt;project&lt;/A&gt; already existed which I could fork.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks to &lt;A href="https://github.com/MadhukarMoogala/OPMNetExt/tree/NET8.0" target="_blank" rel="noopener"&gt;this&lt;/A&gt; version I was able to get it working in .NET 8. The .dll for OPMNet is in the same folder as the main .dll for my plugin.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Its going to be tough to figure out how to fix this for me as the problem is on another users computer, and I cant seem to recreate it on the three computers I have available to me.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I checked in the users ApplicationPlugins folder and it doesn't appear that the only other plugin they seem to have uses anything like OPMNet.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What is the best practice for dependencies for your plugin? My current plugin has a .dll for "itself", a library class that I wrote and create the .dll for, and the .dll for OPMNet which I also created myself from the fork of the original project. All of these .dll's are in the same folder inside of the .bundle folder of my project. And I've heard that on loading my main plugins .dll it the run time should be able to find the depencecies in the same folder? But I think I'm wrong about how that works.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Should I be using something like Assembly.Load() in my initialization for my plugin to load the other dependencies it needs? Or is this something that should be handled in the PackageContents of the .bundle?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 18:45:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13755027#M85568</guid>
      <dc:creator>nshupeFMPE3</dc:creator>
      <dc:date>2025-08-05T18:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: .NET plugin not loading using NETLOAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13755368#M85569</link>
      <description>&lt;P&gt;Did you forget about what was discussed in &lt;A href="https://forums.autodesk.com/t5/net-forum/what-are-some-troubleshooting-steps-for-why-a-dll-will-not/m-p/13684296" target="_blank" rel="noopener"&gt;this thread&lt;/A&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 01:01:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13755368#M85569</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2025-08-06T01:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: .NET plugin not loading using NETLOAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13756323#M85572</link>
      <description>&lt;P&gt;I had been experimenting with the notes from that thread and even on my computer where things were working they were not working out after adding AssemblyMappings etc. And apparently the ComponentEntries are parsed and loaded from the bottom up? So when I added the asdkOPMNet to PackageContents at the bottom of the list it worked on my computer. Jury is still out if this will work on the other users computer.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&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"
    ProductType="Application"
    Name="Company Core"
    AppVersion="40.0.00"
    Description="Company Tools"
    Author="Me"
	Icon="renamesubs16.bmp"
	ProductCode="GUID"&amp;gt;

  &amp;lt;CompanyDetails 
	  Name="Company, Inc."
	  Phone=""
	  Url="http://www.Company.com/"
	  Email="" /&amp;gt;

	&amp;lt;Components Description="AutoCAD 2025"&amp;gt;

		&amp;lt;RuntimeRequirements SupportPath="./" Platform="AutoCAD*" SeriesMin="R25.0" ToolPalettePath="./Palettes/" /&amp;gt;

		

		&amp;lt;ComponentEntry
			AppName="Company CUI" 
			ModuleName="./CUI/Company.cuix"
			AppType="CuiX"&amp;gt;			
			&amp;lt;RuntimeRequirements OS="Win64"
			Platform="AutoCAD"
			SeriesMin="R25.0"/&amp;gt;			
		&amp;lt;/ComponentEntry&amp;gt;

		&amp;lt;/ComponentEntry&amp;gt;

		&amp;lt;ComponentEntry
			AppName="CompanyCore"
			ModuleName="./DLL/CompanyCore.dll"
			LoadOnAutoCADStartup="True"
			AppType=".Net"&amp;gt;
			&amp;lt;RuntimeRequirements OS="Win64"
			                     Platform="AutoCAD"
			                     SeriesMin="R25.0"/&amp;gt;
								 &amp;lt;AssemblyMappings&amp;gt;
									&amp;lt;AssemblyMappingFolder Path="./DLL"/&amp;gt;
								&amp;lt;/AssemblyMappings&amp;gt;
		&amp;lt;/ComponentEntry&amp;gt;

		&amp;lt;ComponentEntry
			AppName="asdkOPMNet"
			ModuleName="./DLL/asdkOPMNetExt8.0.dll"
			LoadOnAutoCADStartup="True"
			AppType=".Net"&amp;gt;
			&amp;lt;RuntimeRequirements OS="Win64"
			                     Platform="AutoCAD"
			                     SeriesMin="R25.0"/&amp;gt;
								 &amp;lt;AssemblyMappings&amp;gt;
									&amp;lt;AssemblyMappingFolder Path="./DLL"/&amp;gt;
								&amp;lt;/AssemblyMappings&amp;gt;
		&amp;lt;/ComponentEntry&amp;gt;


	&amp;lt;/Components&amp;gt;

&amp;lt;/ApplicationPackage&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 06 Aug 2025 14:15:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13756323#M85572</guid>
      <dc:creator>nshupeFMPE3</dc:creator>
      <dc:date>2025-08-06T14:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: .NET plugin not loading using NETLOAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13756651#M85574</link>
      <description>&lt;P&gt;AssemblyMappings tells the runtime where to look for dependent assemblies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;asdkOPMNet is not a component, it is an assembly that a component depends on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There shouldn't be a ComponentEntry for it at all, if you are using AssemblyMappings&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 17:51:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13756651#M85574</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2025-08-06T17:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: .NET plugin not loading using NETLOAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13756705#M85575</link>
      <description>&lt;P&gt;Sorry the C++ gets a little confusing for me, but &lt;A href="https://github.com/WB-nshupe/OPMNetExt/blob/master/OPMNetExt/acrxEntryPoint.cpp" target="_blank" rel="noopener"&gt;this&lt;/A&gt; is part of OPMNetExt&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;#include "StdAfx.h"
#include "resource.h"

#define szRDS _RXST("asdk")

//----- ObjectARX EntryPoint
class COPMNetExtApp : public AcRxArxApp {

public:
	COPMNetExtApp() : AcRxArxApp() {}

	virtual AcRx::AppRetCode On_kInitAppMsg(void *pkt)
  {
		// You *must* call On_kInitAppMsg here

		AcRx::AppRetCode retCode = AcRxArxApp::On_kInitAppMsg(pkt);
		
		return (retCode);
	}

	virtual AcRx::AppRetCode On_kUnloadAppMsg(void *pkt)
  {
		// You *must* call On_kUnloadAppMsg here

    AcRx::AppRetCode retCode = AcRxArxApp::On_kUnloadAppMsg(pkt);

		return retCode;
	}

	virtual void RegisterServerComponents()
  {}
};

IMPLEMENT_ARX_ENTRYPOINT(COPMNetExtApp)&lt;/LI-CODE&gt;&lt;P&gt;Does this mean that it is a plugin that needs to be loaded that then is used by other plugins?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Also I used the above PackageContents just this morning while testing and now its not loading my plugin? I was able to NETLOAD OPMNet and then my Plugins .dll&lt;BR /&gt;&lt;BR /&gt;In the Example Plugin for how to use OPMNetExt this is used in the Initialization method for that example plugin&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Assembly.LoadFrom(@"C:\Users\username\source\repos\OPMNetExt\x64\Debug\asdkOPMNetExt.dll");&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 06 Aug 2025 18:25:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13756705#M85575</guid>
      <dc:creator>nshupeFMPE3</dc:creator>
      <dc:date>2025-08-06T18:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: .NET plugin not loading using NETLOAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13756837#M85576</link>
      <description>&lt;P&gt;The example is wrong. The managed runtime takes care of loading dependent assemblies for you, and you do not need to do that manually. This extension DLL is just another managed assembly that your code references and uses, and it shouldn't be treated any differently than any other managed assembly that your code is dependent on.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 19:47:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13756837#M85576</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2025-08-06T19:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: .NET plugin not loading using NETLOAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13756942#M85577</link>
      <description>&lt;P&gt;Ok in order to narrow down possible variables but for me to properly understand what is going on this is what I've done.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In the simple plugin from the Original Post (plus the Application.Idle changes recommended by _gile) I added OPMNetExt as a dependency and created a simple property&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public class PluginExtension : IExtensionApplication
{
    public void Initialize()
    {
        // Add your initialization code here

        Autodesk.AutoCAD.ApplicationServices.Application.Idle += OnIdle;
    }

    private void OnIdle(object? sender, EventArgs e)
    {
        var doc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager?.MdiActiveDocument;

        if (doc != null)
        {
            Autodesk.AutoCAD.ApplicationServices.Application.Idle -= OnIdle;

            try
            {
                LoadProperties();
                doc.Editor.WriteMessage($"\nAutoCAD_2025_Test_Plugin loaded.\n");
            }
            catch(Exception ex)
            {
                doc.Editor.WriteMessage($"\nError: {ex.Message}");
            }
        }
    }

    public void Terminate()
    {
        // Add your termination code here
        UnloadProperties();
    }

    private ZoneNumberProperty zoneNumProp = null;

    private void LoadProperties()
    {
        //https://github.com/WB-nshupe/OPMNetExt
        // Add the Dynamic Property
        Dictionary classDict = SystemObjects.ClassDictionary;
        RXClass lineDesc = (RXClass)classDict.At("AcDbPolyline");
        IPropertyManager2 pPropMan = (IPropertyManager2)xOPM.xGET_OPMPROPERTY_MANAGER(lineDesc);

        zoneNumProp = new();
        pPropMan.AddProperty((object)zoneNumProp);

    }

    private void UnloadProperties()
    {
        // Remove the Dynamic Property
        Dictionary classDict = SystemObjects.ClassDictionary;
        RXClass lineDesc = (RXClass)classDict.At("AcDbPolyline");
        IPropertyManager2 pPropMan = (IPropertyManager2)xOPM.xGET_OPMPROPERTY_MANAGER(lineDesc);

        pPropMan.RemoveProperty((object)zoneNumProp);
        zoneNumProp = null;
    }
}

#######################

#region COMStuff

[
    
    Guid("33C21CD0-D6F3-41D7-AA40-755B1ADDE261"),
    ProgId("TestTools.ZoneProperty.3"),

    // No class interface is generated for this class and
    // no interface is marked as the default.
    // Users are expected to expose functionality through
    // interfaces that will be explicitly exposed by the object
    // This means the object can only expose interfaces we define

    ClassInterface(ClassInterfaceType.None),
    // Set the default COM interface that will be used for
    // Automation. Languages like: C#, C++ and VB allow to 
    //query for interface's we're interested in but Automation 
    // only aware languages like javascript do not allow to 
    // query interface(s) and create only the default one

    ComDefaultInterface(typeof(IDynamicProperty2)),
    ComVisible(true)
]

#endregion

public class ZoneNumberProperty : IDynamicProperty2, ICategorizeProperties
{
    private IDynamicPropertyNotify2 m_pSink = null;

    public void GetGUID([UnscopedRef] out Guid propGUID)
    {
        propGUID = new Guid("33C21CD0-D6F3-41D7-AA40-755B1ADDE261");//needs to be the same as in the COMStuff
    }

    public void GetDisplayName(ref string name)
    {
        name = "Zone Number";
    }

    public void IsPropertyEnabled(object pUnk, [UnscopedRef] out int bEnabled)
    {
        bEnabled = 0;

        if (pUnk is null) return;

        bEnabled = 1;
    }

    public void IsPropertyReadOnly([UnscopedRef] out int bReadonly)
    {
        bReadonly = 0;
    }

    public void GetDescription(ref string description)
    {
        description = "This is the zone number for Testing";
    }

    public void GetCurrentValueName(ref string name)
    {
        name = string.Empty;
    }

    public void GetCurrentValueType([UnscopedRef] out ushort pVarType)
    {
        // The Property Inspector supports the following data
        // types for dynamic properties:
        // VT_I2, VT_I4, VT_R4, VT_R8,VT_BSTR, VT_BOOL
        // and VT_USERDEFINED. 
        /*
         * VT_I2 =&amp;gt; 2
         * VT_I4 =&amp;gt; 3
         * VT_R4 =&amp;gt; 4
         * VT_R8 =&amp;gt; 5
         * VT_BSTR =&amp;gt; 8
         * VT_BOOL =&amp;gt; 11
         * VT_USERDEFINED =&amp;gt; 29
         */

        pVarType = 8;
    }

    public void GetCurrentValueData(object pUnk, ref object varData)
    {
        string zoneNum = "1";

        
        varData = (string)zoneNum;
    }

    public void SetCurrentValueData(object pUnk, object varData)
    {
        // Because we said the value type was a 32b int (VT_I4)
        string myVal = (string)varData;

    }

    public void Connect(object pSink)
    {
        m_pSink = (IDynamicPropertyNotify2)pSink;
    }

    public void Disconnect()
    {
        m_pSink = null;
    }

    public void MapPropertyToCategory(int dispid, ref int ppropcat)
    {
        ppropcat = 1;
    }

    public void GetCategoryName(int propcat, uint lcid, ref string pbstrName)
    {
        if (propcat != 1) pbstrName = string.Empty;
        pbstrName = "Zone Properties";
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;And this is my file structure for this "plugin" test&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nshupeFMPE3_0-1754514859299.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1559104iC64483C7022C0810/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nshupeFMPE3_0-1754514859299.png" alt="nshupeFMPE3_0-1754514859299.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This is not a .bundle and does not have PackageContents&lt;BR /&gt;&lt;BR /&gt;If I open AutoCAD 2026 and run NETLOAD and select "AutoCAD 2025 Test Plugin.dll" it does not load and gives no error in the command line.&amp;nbsp;&lt;BR /&gt;If I first run NETLOAD with "asdkOPMNetExt8.0.dll" then NETLOAD&amp;nbsp;"AutoCAD 2025 Test Plugin.dll" everything loads correctly.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 21:19:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13756942#M85577</guid>
      <dc:creator>nshupeFMPE3</dc:creator>
      <dc:date>2025-08-06T21:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: .NET plugin not loading using NETLOAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13756964#M85578</link>
      <description>&lt;P&gt;Did you rename the file to&amp;nbsp;&lt;STRONG&gt;asdkOPMNetExt8.0&lt;/STRONG&gt;? With the&amp;nbsp;&lt;STRONG&gt;8.0&lt;/STRONG&gt; in the end?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Usually the resolver tries to find the dll using the assembly name, if you change the name of the file your &lt;STRONG&gt;AutoCAD 2025 Test Plugin.dll&amp;nbsp;&lt;/STRONG&gt;is not gonna find the assembly&amp;nbsp;&lt;STRONG&gt;asdkOPMNetExt.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 21:42:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13756964#M85578</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2025-08-06T21:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: .NET plugin not loading using NETLOAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13770713#M85626</link>
      <description>&lt;P&gt;I have encountered several times that running &lt;STRONG&gt;NETLOAD&lt;/STRONG&gt; fails and I don't get any error either.&lt;BR /&gt;If a &lt;STRONG&gt;CommandMethod&lt;/STRONG&gt; with the same name is defined in the project - AutoCAD does not load the DLL.&lt;/P&gt;&lt;P&gt;Even if the &lt;STRONG&gt;DLL&lt;/STRONG&gt; is used in a recent version and a &lt;STRONG&gt;DLL&lt;/STRONG&gt; exists in one of the &lt;STRONG&gt;ACAD.EXE&lt;/STRONG&gt; libraries, the operation fails without a message.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Aug 2025 12:39:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-plugin-not-loading-using-netload/m-p/13770713#M85626</guid>
      <dc:creator>Izhar_Azati</dc:creator>
      <dc:date>2025-08-17T12:39:24Z</dc:date>
    </item>
  </channel>
</rss>

