<?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: Loading plugin without using NETLOAD in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/loading-plugin-without-using-netload/m-p/8670118#M23178</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you start AutoCAD from a standalone executable using the COM API, you can call NETLOAD in an AutoLISP expression (this avoid the dialog box to open) launchned with the AcadDocument.SendCommand() method (you can see an example &lt;A href="https://help.autodesk.com/view/OARX/2019/ENU/?guid=GUID-C8C65D7A-EC3A-42D8-BF02-4B13C2EA1A4B" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;here&lt;/STRONG&gt;&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;But the Autoloader route should also work, I extensively use it.&lt;/P&gt;
&lt;P&gt;Here's a minimalist PackageContents.xml file example. Replace "YourApp" with your application name, the DLL is supposed to be in a 'Contents' directory.&lt;/P&gt;
&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;ApplicationPackage
  SchemaVersion="1.0"
  AppVersion="1.0.0"
  ProductCode="{83F90232-3CEB-40F0-45BE-2638C919CEA5}"
  UpgradeCode="{B31D4C65-464B-4665-9E9F-B3877B1C453A}"
  Name="YourApp"
  AutodeskProduct="AutoCAD"
  ProductType="Application"&amp;gt;
  &amp;lt;Components Description="2013 to 2019 parts"&amp;gt;
    &amp;lt;RuntimeRequirements OS="Win32|Win64" Platform="AutoCAD*" SeriesMin="R19.0" SeriesMax="R23.0" /&amp;gt;
    &amp;lt;ComponentEntry
      AppName="YourApp"
      Version="1.0.0"
      ModuleName="./Contents/YourApp.dll"
      LoadOnAutoCADStartup="True"&amp;gt;
    &amp;lt;/ComponentEntry&amp;gt;
  &amp;lt;/Components&amp;gt;
&amp;lt;/ApplicationPackage&amp;gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 19 Mar 2019 22:15:07 GMT</pubDate>
    <dc:creator>_gile</dc:creator>
    <dc:date>2019-03-19T22:15:07Z</dc:date>
    <item>
      <title>Loading plugin without using NETLOAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/loading-plugin-without-using-netload/m-p/8669911#M23177</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;
&lt;P&gt;I've been trying for weeks to get a plugin to load by placing it in a .bundle folder with the corresponding PackageContents.xml. The dll loads just fine when I use NETLOAD. I'm planning to write an executable that will launch AutoCAD to change drawings by using use my dll. Is there a way to use NETLOAD in an executable to load the dll?&amp;nbsp; Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 20:42:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/loading-plugin-without-using-netload/m-p/8669911#M23177</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-19T20:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Loading plugin without using NETLOAD</title>
      <link>https://forums.autodesk.com/t5/net-forum/loading-plugin-without-using-netload/m-p/8670118#M23178</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you start AutoCAD from a standalone executable using the COM API, you can call NETLOAD in an AutoLISP expression (this avoid the dialog box to open) launchned with the AcadDocument.SendCommand() method (you can see an example &lt;A href="https://help.autodesk.com/view/OARX/2019/ENU/?guid=GUID-C8C65D7A-EC3A-42D8-BF02-4B13C2EA1A4B" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;here&lt;/STRONG&gt;&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;But the Autoloader route should also work, I extensively use it.&lt;/P&gt;
&lt;P&gt;Here's a minimalist PackageContents.xml file example. Replace "YourApp" with your application name, the DLL is supposed to be in a 'Contents' directory.&lt;/P&gt;
&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;ApplicationPackage
  SchemaVersion="1.0"
  AppVersion="1.0.0"
  ProductCode="{83F90232-3CEB-40F0-45BE-2638C919CEA5}"
  UpgradeCode="{B31D4C65-464B-4665-9E9F-B3877B1C453A}"
  Name="YourApp"
  AutodeskProduct="AutoCAD"
  ProductType="Application"&amp;gt;
  &amp;lt;Components Description="2013 to 2019 parts"&amp;gt;
    &amp;lt;RuntimeRequirements OS="Win32|Win64" Platform="AutoCAD*" SeriesMin="R19.0" SeriesMax="R23.0" /&amp;gt;
    &amp;lt;ComponentEntry
      AppName="YourApp"
      Version="1.0.0"
      ModuleName="./Contents/YourApp.dll"
      LoadOnAutoCADStartup="True"&amp;gt;
    &amp;lt;/ComponentEntry&amp;gt;
  &amp;lt;/Components&amp;gt;
&amp;lt;/ApplicationPackage&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Mar 2019 22:15:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/loading-plugin-without-using-netload/m-p/8670118#M23178</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2019-03-19T22:15:07Z</dc:date>
    </item>
  </channel>
</rss>

