error: ARXLOAD failed

error: ARXLOAD failed

REllard
Participant Participant
4,793 Views
6 Replies
Message 1 of 7

error: ARXLOAD failed

REllard
Participant
Participant

Hello,

 

I have the following lisp 

 

(defun c:LayTransAuto()
(cond ((not (member "laytrans.arx" (arx))) (arxload "laytrans")))
(acet-laytrans "newlayers.dws" 0)
(princ))

 

and the following script that calls the above lisp

(load "laytrans.lsp" nil)
(c:LayTransAuto)
_.qsave
_.close

 

When I load this lsp into appstart, I can call the function and it runs as expected. How ever when I run the script that calls the lisp via the Batch Save Utility I get the following error. 

 

Command: (load "laytranslsp.lsp" nil)
C:LAYTRANSAUTO

Command: (c:LayTransAuto)
; error: ARXLOAD failed

Command: _.qsave

Command: _.close

 

 

 

 

0 Likes
Accepted solutions (1)
4,794 Views
6 Replies
Replies (6)
Message 2 of 7

SeeMSixty7
Advisor
Advisor

I'm not familiar with the Batch Save utility, but it may be an issue with the arx file not being on the path of the utilities environment. Try specifying the entire path of the arx file.

 

i.e.

(arxload "C:\\Program Files\\Autodesk\\AutoCAD 2020\\laytrans.arx")

 

You can use (findfile "laytrans.arx") to get the above path.

 

See if that helps.

 

Good luck,

Message 3 of 7

REllard
Participant
Participant

That also gave me the same error. Thank you for your reply though. Error is below from the detailLog

 

Command: (arxload "C:\\Program Files\\Autodesk\\AutoCAD 2019\\Laytrans.arx")
; error: ARXLOAD failed

0 Likes
Message 4 of 7

Alexander.Rivilis
Mentor
Mentor

@REllard wrote:

Hello,

 

I have the following lisp 

 

(defun c:LayTransAuto()
(cond ((not (member "laytrans.arx" (arx))) (arxload "laytrans")))
(acet-laytrans "newlayers.dws" 0)
(princ))

 

and the following script that calls the above lisp

(load "laytrans.lsp" nil)
(c:LayTransAuto)
_.qsave
_.close

 

When I load this lsp into appstart, I can call the function and it runs as expected. How ever when I run the script that calls the lisp via the Batch Save Utility I get the following error. 

 

Command: (load "laytranslsp.lsp" nil)
C:LAYTRANSAUTO

Command: (c:LayTransAuto)
; error: ARXLOAD failed

Command: _.qsave

Command: _.close

 

 

 

 


Looks like problem with path to "laytrans.arx". This file have to be in Support File Search Path:

изображение.png

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

Message 5 of 7

REllard
Participant
Participant

Thank you Alexander, I have done what you suggested also and I still get the same error. 

0 Likes
Message 6 of 7

Alexander.Rivilis
Mentor
Mentor
Accepted solution

Batch Save Utility use AutoCAD or AcCoreConsole? If it use AcCoreConsole you can use only crx-files but not arx-files.

You can try:

1) to do copy of Laytrans.arx with name Laytrans.crx

2) use (arxload "laytrans.crx") instead of (arxload "laytrans")

But as far as Laytrans.arx dependent on acad.exe those manipulation can not help you...

 
 

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

Message 7 of 7

REllard
Participant
Participant

Thank you so much I have been banging my head on this one for a week. What fixed it for me was making a copy of the Laytrans.arx file as Laytrans.crx file.  

0 Likes