<?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: Unable to load *.scr file in Accoreconsole in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/unable-to-load-scr-file-in-accoreconsole/m-p/11405590#M11747</link>
    <description>&lt;P&gt;You cannot directly use the NETLOAD command in a script because because it uses a dialog to get the file name from the user.&lt;/P&gt;
&lt;P&gt;You have to embed it in a LISP expression:&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;(command "netload" "C:\\Users\\User\\Documents\\Projects\\MES\\MiTS2\\Civil3DIntegrator\\Test\\bin\\Debug\\2023\\MES.Civil3DIntegratorTest.dll")&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 07 Sep 2022 09:24:01 GMT</pubDate>
    <dc:creator>_gile</dc:creator>
    <dc:date>2022-09-07T09:24:01Z</dc:date>
    <item>
      <title>Unable to load *.scr file in Accoreconsole</title>
      <link>https://forums.autodesk.com/t5/net-forum/unable-to-load-scr-file-in-accoreconsole/m-p/11405392#M11746</link>
      <description>&lt;P&gt;For some reason, I can't load *.scr in Accoreconsole, but &lt;STRONG&gt;I can do that no problem in acad.exe&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the argument I pass to Accoreconsole:&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;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\Test\AutoNetLoadCoreConsole2023.scr"&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is my *.scr content:&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="general"&gt;netload "C:\Users\User\Documents\Projects\MES\MiTS2\Civil3DIntegrator\Test\bin\Debug\2023\MES.Civil3DIntegratorTest.dll"
RunCADtests&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Taking inspiration from &lt;A href="https://forums.autodesk.com/t5/net/accoreconsole-unable-to-load-assembly/td-p/10683280" target="_blank" rel="noopener"&gt;this post&lt;/A&gt;, I've also tried to set TrustedPaths via *.scr content&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="general"&gt;SET TRUSTEDPATHS="C:\Users\User\Documents\Projects\MES\MiTS2\Civil3DIntegrator\Test\bin\Debug\2023"

netload "C:\Users\User\Documents\Projects\MES\MiTS2\Civil3DIntegrator\Test\bin\Debug\2023\MES.Civil3DIntegratorTest.dll"

RunCADtests&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And still, it doesn't work. In both cases, the netload statement already fails ( or before).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the content of the output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;edirect stdout (file: C:\Users\User\AppData\Local\Temp\accc172362).
AcCoreConsole: StdOutConsoleMode: processed-output: enabled,auto
AutoCAD Core Engine Console - Copyright 2022 Autodesk, Inc.  All rights reserved. (T.114.0.0)

Execution Path:
D:\Program Files\Autodesk\AutoCAD 2023\accoreconsole.exe
Current Directory: C:\Users\User\Documents\Projects\MES\MiTS2\Civil3DIntegrator\Test\bin\Debug\2023

Version Number: T.114.0.0 (UNICODE)

Usage:
AcCoreConsole.exe [/i &amp;lt;input dwg&amp;gt;] /s &amp;lt;script&amp;gt; [/product &amp;lt;product&amp;gt;] [/l &amp;lt;language&amp;gt;] [/isolate &amp;lt;userid&amp;gt; &amp;lt;userDataFolder&amp;gt;] [/readonly] [/p[rofile] &amp;lt;profile&amp;gt;] [/loadmodule &amp;lt;module&amp;gt;]

Example:
AcCoreConsole.exe /i 8th_floor.dwg /s test.scr /l en-US
LogFilePath has been set to the working folder.
Loading AEC Base...
Loading AECC Base...

Loading Modeler DLLs.
Loading AECC Building Site...
Loading AECC Land...
Loading AEC Base Extended...
Loading AEC Core...
Loading AECC Base Core...
Loading AECC QTO......
Loading AECC Survey...
Loading AECC Roadway...
Loading AECC Pipe Part...
Loading AECC Pipe Network...
Loading AECC Pressure Pipes...
Loading AECC DwgIndxExtractor...
Loading AEC Project Base...
Loading AEC Schedule...
Loading AECC Plan Production...
Loading AEC Architectural Base...
Loading AecCivilBase...
Loading AECC Point Cloud...
Loading AECC Hydrology...
Loading AeccBridge130...
Loading AECC Rail...
Regenerating model.
.
**** System Variable Changed ****
1 of the monitored system variables has changed from the preferred value. Use SY1 of the monitored system variables has changed from the preferred value. Use SYSVARMONITOR command to view changes.


AutoCAD menu utilities loaded.
Command:
Command:

Command:
Command:&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea why?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 07:58:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unable-to-load-scr-file-in-accoreconsole/m-p/11405392#M11746</guid>
      <dc:creator>soonhui</dc:creator>
      <dc:date>2022-09-07T07:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load *.scr file in Accoreconsole</title>
      <link>https://forums.autodesk.com/t5/net-forum/unable-to-load-scr-file-in-accoreconsole/m-p/11405590#M11747</link>
      <description>&lt;P&gt;You cannot directly use the NETLOAD command in a script because because it uses a dialog to get the file name from the user.&lt;/P&gt;
&lt;P&gt;You have to embed it in a LISP expression:&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;(command "netload" "C:\\Users\\User\\Documents\\Projects\\MES\\MiTS2\\Civil3DIntegrator\\Test\\bin\\Debug\\2023\\MES.Civil3DIntegratorTest.dll")&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 07 Sep 2022 09:24:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unable-to-load-scr-file-in-accoreconsole/m-p/11405590#M11747</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2022-09-07T09:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load *.scr file in Accoreconsole</title>
      <link>https://forums.autodesk.com/t5/net-forum/unable-to-load-scr-file-in-accoreconsole/m-p/11405601#M11748</link>
      <description>&lt;P&gt;Silly me! The problem was because I specify the argument wrongly, it should be&amp;nbsp;&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" /s "C:\Users\User\Documents\Projects\MES\MiTS2\Civil3DIntegrator\Test\AutoNetLoadCoreConsole2023.scr"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that the argument should be /s and not /b for accoreconsole.exe&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 09:31:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unable-to-load-scr-file-in-accoreconsole/m-p/11405601#M11748</guid>
      <dc:creator>soonhui</dc:creator>
      <dc:date>2022-09-07T09:31:47Z</dc:date>
    </item>
  </channel>
</rss>

