<?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: Netload doesn't work in AutoCAD script ( but works when I manually typing it in command line) in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/netload-doesn-t-work-in-autocad-script-but-works-when-i-manually/m-p/11389842#M11839</link>
    <description>&lt;P&gt;In the script file, replace:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;netload "C:\Users\User\Documents\Projects\MES\MiTS2\Civil3DIntegrator\Source\bin\Debug\2023\MES.Civil3DIntegrator.dll"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with this LISP expression:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(command "netload" "C:\\Users\\User\\Documents\\Projects\\MES\\MiTS2\\Civil3DIntegrator\\Source\\bin\\Debug\\2023\\MES.Civil3DIntegrator.dll")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Aug 2022 08:44:53 GMT</pubDate>
    <dc:creator>_gile</dc:creator>
    <dc:date>2022-08-30T08:44:53Z</dc:date>
    <item>
      <title>Netload doesn't work in AutoCAD script ( but works when I manually typing it in command line)</title>
      <link>https://forums.autodesk.com/t5/net-forum/netload-doesn-t-work-in-autocad-script-but-works-when-i-manually/m-p/11389586#M11836</link>
      <description>&lt;P&gt;Here's something strange. When I explicitly type in Netload at the AutoCAD command line, I can select the relevant dll and the loading is successful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I netload it via script, it doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be more specific, I'm launching AutoCAD 2023( as Civil 3D 2023, but it shouldn't matter here) as a Debugging action in my Visual Studio 2023, with the following command line argument:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;/ld "D:\Program Files\Autodesk\AutoCAD 2023\\AecBase.dbx" /p "&amp;lt;&amp;lt;C3D_Metric&amp;gt;&amp;gt;" /product "C3D" /b "C:\Users\User\Documents\Projects\MES\MiTS2\Civil3DIntegrator\Source\LoadPlugin_2023.scr"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And in my SCR script, this is what I put in&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;netload "C:\Users\User\Documents\Projects\MES\MiTS2\Civil3DIntegrator\Source\bin\Debug\2023\MES.Civil3DIntegrator.dll"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I launch my debugger, I can see AutoCAD being loaded alright, but I don't see my plugin being activated ( like I mentioned above, if I manually type in Netload then everything works just fine). When I press F2, I got this weird message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;netload Assembly file name: "C:\Users\User\Documents\Projects\MES\MiTS2\Civil3DIntegrator\Source\bin\Debug\2023\MES.Civil3DIntegrator.dll"*Cancel*
*Cancel*"C:\Users\User\Documents\Projects\MES\MiTS2\Civil3DIntegrator\Source\bin\Debug\2023\MES.Civil3DIntegrator.dll"
"C:\Users\User\Documents\Projects\MES\MiTS2\Civil3DIntegrator\Source\bin\Debug\2023\MES.Civil3DIntegrator.dll"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice that AutoCAD actually cancels (??) my netload, for unknown reasons!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On a separate note, notice that the dll is located 2 directories below the .scr file. I wonder whether it's possible to simplify the scr content&amp;nbsp; to something like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;netload "..\bin\Debug\2023\MES.Civil3DIntegrator.dll"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does SCR file support relative path?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 06:45:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/netload-doesn-t-work-in-autocad-script-but-works-when-i-manually/m-p/11389586#M11836</guid>
      <dc:creator>soonhui</dc:creator>
      <dc:date>2022-08-30T06:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Netload doesn't work in AutoCAD script ( but works when I manually typing it in command line)</title>
      <link>https://forums.autodesk.com/t5/net-forum/netload-doesn-t-work-in-autocad-script-but-works-when-i-manually/m-p/11389723#M11837</link>
      <description>&lt;P&gt;Have you tried using the LISP (command) function to invoke NETLOAD?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 07:52:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/netload-doesn-t-work-in-autocad-script-but-works-when-i-manually/m-p/11389723#M11837</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2022-08-30T07:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Netload doesn't work in AutoCAD script ( but works when I manually typing it in command line)</title>
      <link>https://forums.autodesk.com/t5/net-forum/netload-doesn-t-work-in-autocad-script-but-works-when-i-manually/m-p/11389789#M11838</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4476837"&gt;@ActivistInvestor&lt;/a&gt;&amp;nbsp;, no haven't. But can you call .lsp file like how you call .scr file in the &lt;A href="https://docs.microsoft.com/en-us/visualstudio/debugger/debugging-preparation-console-projects?view=vs-2022" target="_blank" rel="noopener"&gt;VS debugging command line setting&lt;/A&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 08:22:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/netload-doesn-t-work-in-autocad-script-but-works-when-i-manually/m-p/11389789#M11838</guid>
      <dc:creator>soonhui</dc:creator>
      <dc:date>2022-08-30T08:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Netload doesn't work in AutoCAD script ( but works when I manually typing it in command line)</title>
      <link>https://forums.autodesk.com/t5/net-forum/netload-doesn-t-work-in-autocad-script-but-works-when-i-manually/m-p/11389842#M11839</link>
      <description>&lt;P&gt;In the script file, replace:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;netload "C:\Users\User\Documents\Projects\MES\MiTS2\Civil3DIntegrator\Source\bin\Debug\2023\MES.Civil3DIntegrator.dll"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with this LISP expression:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(command "netload" "C:\\Users\\User\\Documents\\Projects\\MES\\MiTS2\\Civil3DIntegrator\\Source\\bin\\Debug\\2023\\MES.Civil3DIntegrator.dll")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 08:44:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/netload-doesn-t-work-in-autocad-script-but-works-when-i-manually/m-p/11389842#M11839</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2022-08-30T08:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Netload doesn't work in AutoCAD script ( but works when I manually typing it in command line)</title>
      <link>https://forums.autodesk.com/t5/net-forum/netload-doesn-t-work-in-autocad-script-but-works-when-i-manually/m-p/11389994#M11840</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;&amp;nbsp;, this is what I got after modifying the SCR file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lisp command.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1109656iD9C5AD2B02F790F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="lisp command.png" alt="lisp command.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now the plugin is loaded and all I have to do further after this, is just to press the Enter key. There is some progress in a sense.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But why my original command couldn't work? It does work in other project though, but not this one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And is there anyway to enhance the script still, so that I don't have to press Enter to load the plugin?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 09:45:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/netload-doesn-t-work-in-autocad-script-but-works-when-i-manually/m-p/11389994#M11840</guid>
      <dc:creator>soonhui</dc:creator>
      <dc:date>2022-08-30T09:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Netload doesn't work in AutoCAD script ( but works when I manually typing it in command line)</title>
      <link>https://forums.autodesk.com/t5/net-forum/netload-doesn-t-work-in-autocad-script-but-works-when-i-manually/m-p/11390116#M11841</link>
      <description>&lt;P&gt;In an AutoCAD script file, a space or a carriage return means 'Enter'.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 10:51:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/netload-doesn-t-work-in-autocad-script-but-works-when-i-manually/m-p/11390116#M11841</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2022-08-30T10:51:39Z</dc:date>
    </item>
  </channel>
</rss>

