<?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: Launch accoreconsole as process from vb.net not working in AutoCad 2022 in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/launch-accoreconsole-as-process-from-vb-net-not-working-in/m-p/11958355#M8863</link>
    <description>Thanks for your reply&lt;BR /&gt;I tried with LEGACYCODESEARCH both on and off. The results were the same.&lt;BR /&gt;I do call out the entire path to the autolisp code in the script:&lt;BR /&gt;(load "c:\\acadcode\\ccm.lsp")&lt;BR /&gt;</description>
    <pubDate>Thu, 11 May 2023 22:41:46 GMT</pubDate>
    <dc:creator>austin.bryanD2AEJ</dc:creator>
    <dc:date>2023-05-11T22:41:46Z</dc:date>
    <item>
      <title>Launch accoreconsole as process from vb.net not working in AutoCad 2022</title>
      <link>https://forums.autodesk.com/t5/net-forum/launch-accoreconsole-as-process-from-vb-net-not-working-in/m-p/11958184#M8859</link>
      <description>&lt;P&gt;I have a VB console app that launches AutoCad's coreconsole as a process.&amp;nbsp; It includes an argument that is a script which loads and calls autolisp programming.&amp;nbsp; It works just fine with AutoCad 2018 but not on 2022.&amp;nbsp; Below is the VB code and the script file.&amp;nbsp; Suggestions on why 2022 is not cooperating?&amp;nbsp; Note that the trusted paths are set just the same in 2018 and 2022.&amp;nbsp; SECURELOAD is set to 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim ACC_Process As Process&lt;BR /&gt;Dim ProcessProperties As New ProcessStartInfo&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ProcessProperties.FileName = "C:\Program Files\Autodesk\AutoCAD 2022\accoreconsole.exe"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ProcessProperties.Arguments = " /s " &amp;amp; "C:\temp\ACCoreconsoleScript.scr"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ProcessProperties.WindowStyle = ProcessWindowStyle.Minimized&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ACC_Process = Process.Start(ProcessProperties)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;(load "c:\\acadcode\\ccm.lsp")&lt;BR /&gt;(ccm)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 20:57:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/launch-accoreconsole-as-process-from-vb-net-not-working-in/m-p/11958184#M8859</guid>
      <dc:creator>austin.bryanD2AEJ</dc:creator>
      <dc:date>2023-05-11T20:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Launch accoreconsole as process from vb.net not working in AutoCad 2022</title>
      <link>https://forums.autodesk.com/t5/net-forum/launch-accoreconsole-as-process-from-vb-net-not-working-in/m-p/11958228#M8860</link>
      <description>It doesn't help at all when you just say something isn't working. Imagine you are us, and describe it.</description>
      <pubDate>Thu, 11 May 2023 21:18:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/launch-accoreconsole-as-process-from-vb-net-not-working-in/m-p/11958228#M8860</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2023-05-11T21:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Launch accoreconsole as process from vb.net not working in AutoCad 2022</title>
      <link>https://forums.autodesk.com/t5/net-forum/launch-accoreconsole-as-process-from-vb-net-not-working-in/m-p/11958296#M8861</link>
      <description>&lt;P&gt;Have you played with the&amp;nbsp;&amp;nbsp;&lt;FONT size="4"&gt;LEGACYCODESEARCH&lt;SPAN&gt;&amp;nbsp; system variable ?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 22:06:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/launch-accoreconsole-as-process-from-vb-net-not-working-in/m-p/11958296#M8861</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2023-05-11T22:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Launch accoreconsole as process from vb.net not working in AutoCad 2022</title>
      <link>https://forums.autodesk.com/t5/net-forum/launch-accoreconsole-as-process-from-vb-net-not-working-in/m-p/11958318#M8862</link>
      <description>Thanks for your quick reply.&lt;BR /&gt;Let me try and be a little more thorough.&lt;BR /&gt;When using 2018 the process launch&amp;amp;script opens the coreconsole window, a variety of autolisp programming runs and concludes with a Quit statement that closes the coreconsole. The only change I made to the VB code was changing the year of AutoCad from 2018 to 2022.&lt;BR /&gt;ProcessProperties.FileName = "C:\Program Files\Autodesk\AutoCAD 2022\accoreconsole.exe"&lt;BR /&gt;The coreconsole still opens (I can see it using the Task Manager and looking at background processes) but the script does not appear to execute and subsequently the autolisp code does not run.&lt;BR /&gt;So the real question is, what is stopping the script and/or autolisp from running?&lt;BR /&gt;Two observations:&lt;BR /&gt;&lt;BR /&gt;1. If I launch the accoreconsole.exe application manually and type in the lines shown in the script, everything runs as it should in 2022. The autolisp code is loaded and the programming runs to completion.&lt;BR /&gt;2. If I open AutoCad, load my autolisp code (i.e. Load Application) and make the function call at the command line, again everything runs to completion.&lt;BR /&gt;The behavior I see is what I would expect if there was an issue with trusted paths (i.e. error when trying to load an application from a path not included in my trusted paths). However, the trusted paths are the same in both 2018 and 2022. Additionally I set SECURELOAD to 0 in order to remove that as a possible source of error.&lt;BR /&gt;I suppose what I am looking for is any other settings that might be prohibiting the loading or running of autolisp from an external source (VB).&lt;BR /&gt;I am officially struggling now. I am happy to give you whatever support I can if it means I can get this off my plate.&lt;BR /&gt;Austin&lt;BR /&gt;</description>
      <pubDate>Thu, 11 May 2023 22:25:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/launch-accoreconsole-as-process-from-vb-net-not-working-in/m-p/11958318#M8862</guid>
      <dc:creator>austin.bryanD2AEJ</dc:creator>
      <dc:date>2023-05-11T22:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Launch accoreconsole as process from vb.net not working in AutoCad 2022</title>
      <link>https://forums.autodesk.com/t5/net-forum/launch-accoreconsole-as-process-from-vb-net-not-working-in/m-p/11958355#M8863</link>
      <description>Thanks for your reply&lt;BR /&gt;I tried with LEGACYCODESEARCH both on and off. The results were the same.&lt;BR /&gt;I do call out the entire path to the autolisp code in the script:&lt;BR /&gt;(load "c:\\acadcode\\ccm.lsp")&lt;BR /&gt;</description>
      <pubDate>Thu, 11 May 2023 22:41:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/launch-accoreconsole-as-process-from-vb-net-not-working-in/m-p/11958355#M8863</guid>
      <dc:creator>austin.bryanD2AEJ</dc:creator>
      <dc:date>2023-05-11T22:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Launch accoreconsole as process from vb.net not working in AutoCad 2022</title>
      <link>https://forums.autodesk.com/t5/net-forum/launch-accoreconsole-as-process-from-vb-net-not-working-in/m-p/11958375#M8864</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6350157"&gt;@austin.bryanD2AEJ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you say the lisp is loaded from one of "trusted paths", You do realize the trusted paths are associated to an user profile (e.g, different user profile can define different trusted paths). So, in order for AutoCAD to trust a path, you need to make sure AutoCAD runs with the user profile that defines that path as "trusted". Therefore, you should add "/p [profileName]" to the ProcessStartInfo's Arguments property, besides&amp;nbsp; "/i [drawing path]" and "/s [script]".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 22:56:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/launch-accoreconsole-as-process-from-vb-net-not-working-in/m-p/11958375#M8864</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2023-05-11T22:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Launch accoreconsole as process from vb.net not working in AutoCad 2022</title>
      <link>https://forums.autodesk.com/t5/net-forum/launch-accoreconsole-as-process-from-vb-net-not-working-in/m-p/11959778#M8865</link>
      <description>Thanks for your reply. I was hopeful but this did not seem to help. Both 2018 and 2022 were using the default &amp;lt;&amp;gt;. I included this in my arguments as you suggested. I also tried making a new profile with the same trusted paths. I added that new profile as an argument. No luck.&lt;BR /&gt;</description>
      <pubDate>Fri, 12 May 2023 14:02:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/launch-accoreconsole-as-process-from-vb-net-not-working-in/m-p/11959778#M8865</guid>
      <dc:creator>austin.bryanD2AEJ</dc:creator>
      <dc:date>2023-05-12T14:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Launch accoreconsole as process from vb.net not working in AutoCad 2022</title>
      <link>https://forums.autodesk.com/t5/net-forum/launch-accoreconsole-as-process-from-vb-net-not-working-in/m-p/11975923#M8866</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for all your input.&amp;nbsp; As it turns out, this autolisp statement was causing the crash:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(VLA-object "ActiveX objects")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fortunately, I do not need the related code anymore.&amp;nbsp; Problem solved with delete button.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a great day.&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 18:32:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/launch-accoreconsole-as-process-from-vb-net-not-working-in/m-p/11975923#M8866</guid>
      <dc:creator>austin.bryanD2AEJ</dc:creator>
      <dc:date>2023-05-19T18:32:22Z</dc:date>
    </item>
  </channel>
</rss>

