LISP Weird interaction with (Command ... ) on some workstations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have been running LISP routines with (command "_.COMMAND" etc.) perfectly fine until recently.
On some workstation (AutoCAD2025) the routines had started throwing error messages such as below:
Command: (command "_.Layer" "make" "TESTLAYER" "")
_.Layer
Command: make Unknown command "MAKE". Press F1 for help.
Command: TESTLAYER Unknown command "TESTLAYER". Press F1 for help.
or
Command: (command "_.menuload" "C:/LocalCUI/TEST.cuix")
_.menuload
Command:C:/LocalCUI/TEST.cuix Unknown command "CUIX"
The initial patchwork solution was to change the ._ to a - , however I am not sure what other downstream issues that changing these will make for all our other routines or possible issues.
I have attempted to search the forums, but found nothing related (might just be searching for the wrong terms).
I though it was a cmdecho issue, but that doesn't seem to solve anything.
I tried resetting the User Profile For AutoCAD2025 (as those same workstations also have C3D and the original codes work file), that also does not resolve the issue.
I have talked with Lee-Mac, and the suggestion to use the combo ._- instead such as
(command "_.-Layer" "make" "TESTLAYER" "")
While this fixes the issue with Layer command, it does nothing with Menuload command and I have not done enough testing on the various other commands to see if the Menuload is a one off issue and I should be loading in the CUIX using a different method.
Has anyone encounter a similar issue and know how I could resolve the issue without modifying all my routines?
Is there some variable (environmental or system) that controls if command-line version is used?