<?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 LSP running as script works in Script pro when running Acad.EXE but fails when running in the accoreconsole in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12191511#M25026</link>
    <description>&lt;P&gt;Hi Community! I recently was given a LSP program that runs a variety of commands. Long story short, when I run the LSP command individually, it works awesome. When I run this LSP in a script under Script PRO using ACAD.exe as the application version, this also runs the LSP perfectly fine. When I try to run this as a batch file through the accoreconsole.exe, it provides me with this error. My goal is to be able to run this batch file and have it run through the folder of drawings and apply the script without opening autoCAD each time and instead, run it in the background. I have included a snip of the error as well as the section of code where it is failing at. Any suggestions? Has this been heard of before. Any input would help a lot, as I am very new to LSP programming.&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="gv6823otG42ZL_0-1692804976685.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1257064i0B642239B942E8BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gv6823otG42ZL_0-1692804976685.png" alt="gv6823otG42ZL_0-1692804976685.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2023 15:43:29 GMT</pubDate>
    <dc:creator>gv6823otG42ZL</dc:creator>
    <dc:date>2023-08-23T15:43:29Z</dc:date>
    <item>
      <title>LSP running as script works in Script pro when running Acad.EXE but fails when running in the accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12191511#M25026</link>
      <description>&lt;P&gt;Hi Community! I recently was given a LSP program that runs a variety of commands. Long story short, when I run the LSP command individually, it works awesome. When I run this LSP in a script under Script PRO using ACAD.exe as the application version, this also runs the LSP perfectly fine. When I try to run this as a batch file through the accoreconsole.exe, it provides me with this error. My goal is to be able to run this batch file and have it run through the folder of drawings and apply the script without opening autoCAD each time and instead, run it in the background. I have included a snip of the error as well as the section of code where it is failing at. Any suggestions? Has this been heard of before. Any input would help a lot, as I am very new to LSP programming.&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="gv6823otG42ZL_0-1692804976685.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1257064i0B642239B942E8BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gv6823otG42ZL_0-1692804976685.png" alt="gv6823otG42ZL_0-1692804976685.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 15:43:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12191511#M25026</guid>
      <dc:creator>gv6823otG42ZL</dc:creator>
      <dc:date>2023-08-23T15:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: LSP running as script works in Script pro when running Acad.EXE but fails when running in the accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12191890#M25027</link>
      <description>&lt;P&gt;could be that's not supported in&amp;nbsp;&lt;SPAN&gt;accoreconsole.exe&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;try replacing the two functions that uses that with this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;; https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12191511#M453752
;=== This function retrieves the value of the specified attribue on a block ===================================
(defun GetTagVal (ent tag / get val)
 ;; ent = Block entity name with Attribute
 ;; tag = Attribute Tag name
   (while (/= (cdr (assoc 0 (setq get (entget (setq ent (entnext ent)))))) "SEQEND")
     (if (= (cdr (assoc 2 get)) tag) (setq val(cdr (assoc 1 get))))
   )
 val
)
;=== This function fills in the value of the specified attribue on a block ===================================
(defun SetTagVal (ent tag val / get)
 ;; ent = Block entity name with Attribute
 ;; tag = Attribute Tag name
 ;; val = New Attribute Value
   (while (/= (cdr (assoc 0 (setq get (entget (setq ent (entnext ent)))))) "SEQEND")
     (if (= (cdr (assoc 2 get)) tag) (entupd(entmod (subst (cons 1 val) (assoc 1 get) get))))
   )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 18:33:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12191890#M25027</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-08-23T18:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: LSP running as script works in Script pro when running Acad.EXE but fails when running in the accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12192116#M25028</link>
      <description>&lt;P&gt;now I am getting this ??&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gv6823otG42ZL_1-1692820919327.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1257188i9205EB351FD48F49/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gv6823otG42ZL_1-1692820919327.png" alt="gv6823otG42ZL_1-1692820919327.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 20:02:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12192116#M25028</guid>
      <dc:creator>gv6823otG42ZL</dc:creator>
      <dc:date>2023-08-23T20:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: LSP running as script works in Script pro when running Acad.EXE but fails when running in the accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12192131#M25029</link>
      <description>&lt;P&gt;your lisp might be calling for that some where else.&lt;/P&gt;&lt;P&gt;how's about posting the entire lisp function for us to take a look at?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 20:06:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12192131#M25029</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-08-23T20:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: LSP running as script works in Script pro when running Acad.EXE but fails when running in the accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12193581#M25030</link>
      <description>&lt;P&gt;I have attached the LSP program. Any help would be great!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 10:54:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12193581#M25030</guid>
      <dc:creator>gv6823otG42ZL</dc:creator>
      <dc:date>2023-08-24T10:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: LSP running as script works in Script pro when running Acad.EXE but fails when running in the accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12194035#M25031</link>
      <description>&lt;P&gt;So I see several places where that function is called in your lisp code.&lt;/P&gt;&lt;P&gt;But doing further search on-line for "autolisp getPropertyValue accoreconsole" I came across this thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/equivalent-to-getpropertyvalue-in-accoreconsole/m-p/11666973#M441704" target="_blank"&gt;Solved: Re: Equivalent to getpropertyvalue in accoreconsole - Autodesk Community - AutoCAD&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Perhaps the missing link may be just a matter of adding this line in your script before running your lisp:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(command "_.arx" "Load" "acapp.arx")&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 24 Aug 2023 13:54:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12194035#M25031</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-08-24T13:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: LSP running as script works in Script pro when running Acad.EXE but fails when running in the accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12194865#M25032</link>
      <description>&lt;P&gt;WE ARE GETTING SOMEWHERE!!. Its now running but for some reason it isn't saving the changes. I have included my script as well as the batch file I am running. The batch text is listed below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rem test.bat&lt;BR /&gt;@Anonymous off&lt;BR /&gt;cls&lt;BR /&gt;echo&lt;BR /&gt;echo&lt;BR /&gt;echo&lt;BR /&gt;echo&lt;BR /&gt;pause&lt;/P&gt;&lt;P&gt;:: AutoCAD Console path (change according to AutoCAD version)&lt;BR /&gt;set accoreexe="C:\Program Files\Autodesk\AutoCAD 2022\accoreconsole.exe"&lt;/P&gt;&lt;P&gt;:: Path of the folder containg the files (to change)&lt;BR /&gt;set "source=Z:\u7626\TEST SCRIPT"&lt;/P&gt;&lt;P&gt;:: Path of the script to run(to change)&lt;BR /&gt;set script="C:\Users\u7626\OneDrive\GRE LSP ROUTINE\newloader.scr"&lt;/P&gt;&lt;P&gt;FOR /f "delims=" %%f IN ('dir /b "%source%\*.dwg"') DO %accoreexe% /i "%source%\%%f" /s %script%&lt;/P&gt;&lt;P&gt;:: Comment the following line to autmatically close the console&lt;BR /&gt;pause&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;P&gt;the script is listed below:&lt;/P&gt;&lt;P&gt;(command "_.arx" "Load" "acapp.arx")&lt;BR /&gt;(LOAD "C:/Users/u7626/OneDrive/GRE LSP ROUTINE/GRE1_as_run.lsp")&lt;BR /&gt;(gre1)&lt;BR /&gt;save&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 19:36:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12194865#M25032</guid>
      <dc:creator>gv6823otG42ZL</dc:creator>
      <dc:date>2023-08-24T19:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: LSP running as script works in Script pro when running Acad.EXE but fails when running in the accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12194868#M25033</link>
      <description>&lt;P&gt;replace&amp;nbsp;&lt;/P&gt;&lt;P&gt;save&lt;/P&gt;&lt;P&gt;with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;_.qsave&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and make sure there's another empty line below to represent a return executing the previous line&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 19:38:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12194868#M25033</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-08-24T19:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: LSP running as script works in Script pro when running Acad.EXE but fails when running in the accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12194882#M25034</link>
      <description>&lt;P&gt;I tried that and it still isn't saving. See below to what the cmmd promt is doing now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ECHO is off.&lt;BR /&gt;ECHO is off.&lt;BR /&gt;ECHO is off.&lt;BR /&gt;ECHO is off.&lt;BR /&gt;Press any key to continue . . .&lt;BR /&gt;Redirect stdout (file: C:\Users\u7626\AppData\Local\Temp\accc197922).&lt;BR /&gt;AcCoreConsole: StdOutConsoleMode: processed-output: enabled,auto&lt;BR /&gt;AutoCAD Core Engine Console - Copyright 2021 Autodesk, Inc. All rights reserved. (S.173.0.0)&lt;/P&gt;&lt;P&gt;Execution Path:&lt;BR /&gt;C:\Program Files\Autodesk\AutoCAD 2022\accoreconsole.exe&lt;BR /&gt;Current Directory: C:\Users\u7626\OneDrive\GRE LSP ROUTINE&lt;/P&gt;&lt;P&gt;Version Number: S.173.0.0 (UNICODE)&lt;BR /&gt;LogFilePath has been set to the working folder.&lt;BR /&gt;Loading AEC Base...&lt;BR /&gt;Loading AEC Base Extended...&lt;BR /&gt;Loading AEC Core...&lt;BR /&gt;Loading AEC Project Base...&lt;BR /&gt;Loading AEC Architectural Base...&lt;BR /&gt;Loading AEC Schedule...&lt;BR /&gt;Regenerating model. may not plot&lt;BR /&gt;Press ENTER to continue:&lt;BR /&gt;**** System Variable Changed ****&lt;BR /&gt;1 of the monitored system variables has changed from the preferred value. Use SYSVARMONITOR command to view changes.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;AutoCAD menu utilities loaded.&lt;BR /&gt;Command:&lt;BR /&gt;Command:&lt;/P&gt;&lt;P&gt;Command:&lt;BR /&gt;Command: (command "_.arx" "Load" "acapp.arx")&lt;BR /&gt;_.arx&lt;BR /&gt;Enter an option [?/Load/Unload/Commands/Options]: Load&lt;BR /&gt;Enter ARX/DBX file name to load: acapp.arx&lt;BR /&gt;Command: nil&lt;/P&gt;&lt;P&gt;Command: (LOAD "C:/Users/u7626/OneDrive/GRE LSP ROUTINE/GRE1_as_run.lsp")&lt;BR /&gt;REVS&lt;/P&gt;&lt;P&gt;Command: (gre1)&lt;BR /&gt;Redirect stdout (file: C:\Users\u7626\AppData\Local\Temp\accc142082).&lt;BR /&gt;AcCoreConsole: StdOutConsoleMode: processed-output: enabled,auto&lt;BR /&gt;AutoCAD Core Engine Console - Copyright 2021 Autodesk, Inc. All rights reserved. (S.173.0.0)&lt;/P&gt;&lt;P&gt;Execution Path:&lt;BR /&gt;C:\Program Files\Autodesk\AutoCAD 2022\accoreconsole.exe&lt;BR /&gt;Current Directory: C:\Users\u7626\OneDrive\GRE LSP ROUTINE&lt;/P&gt;&lt;P&gt;Version Number: S.173.0.0 (UNICODE)&lt;BR /&gt;LogFilePath has been set to the working folder.&lt;BR /&gt;Loading AEC Base...&lt;BR /&gt;Loading AEC Base Extended...&lt;BR /&gt;Loading AEC Core...&lt;BR /&gt;Loading AEC Project Base...&lt;BR /&gt;Loading AEC Architectural Base...&lt;BR /&gt;Loading AEC Schedule...&lt;BR /&gt;Regenerating model.&lt;BR /&gt;Press ENTER to continue:&lt;BR /&gt;**** System Variable Changed ****&lt;BR /&gt;1 of the monitored system variables has changed from the preferred value. Use SYSVARMONITOR command to view changes.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;AutoCAD menu utilities loaded.&lt;BR /&gt;Command:&lt;BR /&gt;Command:&lt;/P&gt;&lt;P&gt;Command:&lt;BR /&gt;Command: (command "_.arx" "Load" "acapp.arx")&lt;BR /&gt;_.arx&lt;BR /&gt;Enter an option [?/Load/Unload/Commands/Options]: Load&lt;BR /&gt;Enter ARX/DBX file name to load: acapp.arx&lt;BR /&gt;Command: nil&lt;/P&gt;&lt;P&gt;Command: (LOAD "C:/Users/u7626/OneDrive/GRE LSP ROUTINE/GRE1_as_run.lsp")&lt;BR /&gt;REVS&lt;/P&gt;&lt;P&gt;Command: (gre1)&lt;BR /&gt;Press any key to continue . . .&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 19:43:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12194882#M25034</guid>
      <dc:creator>gv6823otG42ZL</dc:creator>
      <dc:date>2023-08-24T19:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: LSP running as script works in Script pro when running Acad.EXE but fails when running in the accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12194937#M25035</link>
      <description>&lt;P&gt;Looking at the result maybe it never goes beyond this step:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Command: (gre1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Looking inside the lisp code, I see a number of additional lisp functions that require loading.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;   ;== This section converts text from exploded RevAttr block back in to RevAttr block. ==
   (if (= rev_spot_1_contents "TEXT")
      (load "SPT1.lsp" nil)
   )
   (if (= rev_spot_2_contents "TEXT")
      (load "SPT2.lsp" nil)
   )
   (if (= rev_spot_3_contents "TEXT")
      (load "SPT3.lsp" nil)
   )
   (if (= rev_spot_4_contents "TEXT")
      (load "SPT4.lsp" nil)
   )
   (if (= rev_spot_5_contents "TEXT")
      (load "SPT5.lsp" nil)
   )
   (if (= rev_spot_6_contents "TEXT")
      (load "SPT6.lsp" nil)
   )
..................
   ;===== This section does the same function as the AUTOMOD Routine previously used =====
   (setq cur_rev (getAttribValue enx "rev")) ; Gets the current rev level setting in Titleblock
 
   (load "revdata.lsp" nil) ; Loads REVDATA.LSP file&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Are all of these lisp files located in folders where they've been set under &lt;STRONG&gt;Options&amp;gt;Files&amp;gt;Trusted Locations&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Perhaps test a very simple lisp function first like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun drawr ()(command"_.Rectang""0,0""1,1")) &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Saved this as&amp;nbsp;&lt;STRONG&gt;drawr.lsp&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then use this as your script file:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(command "_.arx" "Load" "acapp.arx")
(LOAD "drawr")
(drawr)
_.qsave&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This should confirm that your Script is finishing properly&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 20:09:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12194937#M25035</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-08-24T20:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: LSP running as script works in Script pro when running Acad.EXE but fails when running in the accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12201123#M25036</link>
      <description>&lt;P&gt;Okay, so I have verified that my support file search patch, my working file support path and trusted locations are all up to date with the file location of the script and LSP. I tried running your simple LSP and scr file as a batch and this is what I am getting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ECHO is off.&lt;BR /&gt;ECHO is off.&lt;BR /&gt;ECHO is off.&lt;BR /&gt;ECHO is off.&lt;BR /&gt;Press any key to continue . . .&lt;BR /&gt;Redirect stdout (file: C:\Users\u7626\AppData\Local\Temp\accc153882).&lt;BR /&gt;AcCoreConsole: StdOutConsoleMode: processed-output: enabled,auto&lt;BR /&gt;AutoCAD Core Engine Console - Copyright 2021 Autodesk, Inc. All rights reserved. (S.173.0.0)&lt;/P&gt;&lt;P&gt;Execution Path:&lt;BR /&gt;C:\Program Files\Autodesk\AutoCAD 2022\accoreconsole.exe&lt;BR /&gt;Current Directory: C:\Users\u7626\OneDrive - Great River Energy\Documents\GRE LSP ROUTINE&lt;/P&gt;&lt;P&gt;Version Number: S.173.0.0 (UNICODE)&lt;BR /&gt;LogFilePath has been set to the working folder.&lt;BR /&gt;Loading AEC Base...&lt;BR /&gt;Loading AEC Base Extended...&lt;BR /&gt;Loading AEC Core...&lt;BR /&gt;Loading AEC Project Base...&lt;BR /&gt;Loading AEC Architectural Base...&lt;BR /&gt;Loading AEC Schedule...&lt;BR /&gt;Regenerating model. may not plot&lt;BR /&gt;Press ENTER to continue:&lt;BR /&gt;**** System Variable Changed ****&lt;BR /&gt;1 of the monitored system variables has changed from the preferred value. Use SYSVARMONITOR command to view changes.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;AutoCAD menu utilities loaded.&lt;BR /&gt;Command:&lt;BR /&gt;Command:&lt;/P&gt;&lt;P&gt;Command:&lt;BR /&gt;Command: (command "_.arx" "Load" "acapp.arx")&lt;BR /&gt;_.arx&lt;BR /&gt;Enter an option [?/Load/Unload/Commands/Options]: Load&lt;BR /&gt;Enter ARX/DBX file name to load: acapp.arx&lt;BR /&gt;Command: nil&lt;/P&gt;&lt;P&gt;Command: (LOAD "drawr")&lt;BR /&gt;DRAWR&lt;/P&gt;&lt;P&gt;Command: (drawr)&lt;BR /&gt;_.Rectang&lt;BR /&gt;Specify first corner point or [Chamfer/Elevation/Fillet/Thickness/Width]: 0,0&lt;BR /&gt;Specify other corner point or [Area/Dimensions/Rotation]: 1,1&lt;BR /&gt;Command: nil&lt;/P&gt;&lt;P&gt;Command: _.qsaveRedirect stdout (file: C:\Users\u7626\AppData\Local\Temp\accc194002).&lt;BR /&gt;AcCoreConsole: StdOutConsoleMode: processed-output: enabled,auto&lt;BR /&gt;AutoCAD Core Engine Console - Copyright 2021 Autodesk, Inc. All rights reserved. (S.173.0.0)&lt;/P&gt;&lt;P&gt;Execution Path:&lt;BR /&gt;C:\Program Files\Autodesk\AutoCAD 2022\accoreconsole.exe&lt;BR /&gt;Current Directory: C:\Users\u7626\OneDrive - Great River Energy\Documents\GRE LSP ROUTINE&lt;/P&gt;&lt;P&gt;Version Number: S.173.0.0 (UNICODE)&lt;BR /&gt;LogFilePath has been set to the working folder.&lt;BR /&gt;Loading AEC Base...&lt;BR /&gt;Loading AEC Base Extended...&lt;BR /&gt;Loading AEC Core...&lt;BR /&gt;Loading AEC Project Base...&lt;BR /&gt;Loading AEC Architectural Base...&lt;BR /&gt;Loading AEC Schedule...&lt;BR /&gt;Regenerating model.&lt;BR /&gt;Press ENTER to continue:&lt;BR /&gt;**** System Variable Changed ****&lt;BR /&gt;1 of the monitored system variables has changed from the preferred value. Use SYSVARMONITOR command to view changes.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;AutoCAD menu utilities loaded.&lt;BR /&gt;Command:&lt;BR /&gt;Command:&lt;/P&gt;&lt;P&gt;Command:&lt;BR /&gt;Command: (command "_.arx" "Load" "acapp.arx")&lt;BR /&gt;_.arx&lt;BR /&gt;Enter an option [?/Load/Unload/Commands/Options]: Load&lt;BR /&gt;Enter ARX/DBX file name to load: acapp.arx&lt;BR /&gt;Command: nil&lt;/P&gt;&lt;P&gt;Command: (LOAD "drawr")&lt;BR /&gt;DRAWR&lt;/P&gt;&lt;P&gt;Command: (drawr)&lt;BR /&gt;_.Rectang&lt;BR /&gt;Specify first corner point or [Chamfer/Elevation/Fillet/Thickness/Width]: 0,0&lt;BR /&gt;Specify other corner point or [Area/Dimensions/Rotation]: 1,1&lt;BR /&gt;Command: nil&lt;/P&gt;&lt;P&gt;Command: _.qsavePress any key to continue . . .&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 11:04:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12201123#M25036</guid>
      <dc:creator>gv6823otG42ZL</dc:creator>
      <dc:date>2023-08-28T11:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: LSP running as script works in Script pro when running Acad.EXE but fails when running in the accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12201264#M25037</link>
      <description>&lt;P&gt;Now the Qsave shows up with my simple lisp routine. Did you check if the dwgs actually saved showing a rectangle drawn at those coordinates in the dwg?&lt;/P&gt;&lt;P&gt;If the Qsave successfully executed as shown in your post then that means something’s still causing your more complicated lisp function to stall the accorconsole or at least keeping it from continuing to run the Qsave command after completing the lisp. So that means to simplify the lisp as a way to further troubleshoot to see exactly where it stalls&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 12:29:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12201264#M25037</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-08-28T12:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: LSP running as script works in Script pro when running Acad.EXE but fails when running in the accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12201665#M25038</link>
      <description>&lt;P&gt;So i went and checked, and it didn't draw the rectangle as well as didn't save the drawing. I am guessing there is something going on that is more complicated then what the accoreconsole is trying to do?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 15:00:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12201665#M25038</guid>
      <dc:creator>gv6823otG42ZL</dc:creator>
      <dc:date>2023-08-28T15:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: LSP running as script works in Script pro when running Acad.EXE but fails when running in the accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12201679#M25039</link>
      <description>&lt;P&gt;Copy everything from the onedrive folder and create a separate folder directory under c drive like c:\test&lt;/P&gt;&lt;P&gt;place all &amp;nbsp;lisp, script and batch file here and&amp;nbsp;&lt;/P&gt;&lt;P&gt;modify everything to work under this new local folder including adding c:\test to acad support search and trusted location&amp;nbsp;&lt;/P&gt;&lt;P&gt;run batch again and see if dwg are saved this time. Again make sure script file has extra blank line after the Qsave line to represent a return&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 15:05:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12201679#M25039</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-08-28T15:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: LSP running as script works in Script pro when running Acad.EXE but fails when running in the accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12207843#M25040</link>
      <description>&lt;P&gt;btw, I discovered a flaw in your test.bat. I higlighted the section. The quote is in the wrong location:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_0-1693424163937.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1260143iAB7B89393227A37F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_0-1693424163937.png" alt="paullimapa_0-1693424163937.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It should be like this:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;:: Path of the folder containg the files (to change)
set source="Z:\u7626\TEST SCRIPT"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 19:37:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12207843#M25040</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-08-30T19:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: LSP running as script works in Script pro when running Acad.EXE but fails when running in the accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12207970#M25041</link>
      <description>&lt;P&gt;If that previous correction still fails then I would replace this line the Test.bat:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;FOR /f "delims=" %%f IN ('dir /b "%source%\*.dwg"') DO %accoreexe% /i "%source%\%%f" /s %script%&lt;/LI-CODE&gt;&lt;P&gt;with this line:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;FOR %%f IN (%source%"\*.dwg") DO %accoreexe% /i "%%f" /s %script% /l en-US&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 30 Aug 2023 20:44:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12207970#M25041</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-08-30T20:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: LSP running as script works in Script pro when running Acad.EXE but fails when running in the accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12207977#M25042</link>
      <description>&lt;P&gt;Thanks for all the help. I ended up recently finding AutoScript which is the newer version of script pro. I ran a set of drawings on autoscript and it runs with no issues and is 10x faster then script pro. Highly recommend&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 20:49:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12207977#M25042</guid>
      <dc:creator>gv6823otG42ZL</dc:creator>
      <dc:date>2023-08-30T20:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: LSP running as script works in Script pro when running Acad.EXE but fails when running in the accoreconsole</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12207983#M25043</link>
      <description>&lt;P&gt;Yes I use that as well. But since it’s an arx file the developers may need to issue an update with each newer AutoCAD versions. But so far the same arx file has worked for AutoCAD 2020 through 2024. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 20:51:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lsp-running-as-script-works-in-script-pro-when-running-acad-exe/m-p/12207983#M25043</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-08-30T20:51:50Z</dc:date>
    </item>
  </channel>
</rss>

