Hi,
I have a SCRIPT file that loads a LISP file and runs the defined COMMAND.
In AutoCAD if I select Run Script and select test.scr it works fine.
If I run the script with AcCoreConsole I get:
Unknown command "TESTING"
test.scr
Code:
(load "C:\\_test\\test.lsp")
TESTING
test.lsp
Code:
(defun c:testing ()
(princ (strcat "test complete"))
(princ)
)
BAT file to run AcCoreConsole
Code:
start "" "C:\Program Files\Autodesk\AutoCAD 2019\accoreconsole.exe" /i "C:\Users\user\Desktop\A3.dwg" /s C:\_test\test.scr
AcCoreConsole output
Code:
Redirect stdout (file: C:\Users\user\AppData\Local\Temp\accc296442).
AcCoreConsole: StdOutConsoleMode: processed-output: enabled,auto
AutoCAD Core Engine Console - Copyright 2018 Autodesk, Inc. All rights reserved. (P.46.0.0)
Execution Path:
C:\Program Files\Autodesk\AutoCAD 2019\accoreconsole.exe
Version Number: P.46.0.0 (UNICODE)
Regenerating layout.
Regenerating model.
**** System Variable Changed ****
1 of the monitored system variables has changed from the preferred value. Use SYSVARMONITOR command to view changes.
Command:
Command:
Command:
Command: (appload "C:\\_test\\test.lsp")
Command: TESTING
Unknown command "TESTING". Press F1 for help.
Command: _.quit
Any help would be really appreciated, thank you.