Originally Posted by
irneb
That's probably what's happening. If you issue the normal LAYTRANS command, ACad checks if the ARX file is loaded already, if not it loads this. Therefore when you next type (acet-laytrans ....) at the command prompt the function is already loaded to RAM. But when you issue this from a SCR the command did not occur, thus the ARX is not loaded.
Easy way, similar to Tom's: just add (arxload "laytrans") before the call to (acet-laytrans ...) - as you know it will not have been loaded for a SCR, no need to check if it has been loaded already.
BTW, welcome to AUGI & congrats on your 1st post.
Hello,
This is my first post in Forum. Thanks for the suggestion . I am running Laytrans through my AutoLISP.
Code:
(defun laytr ()
(vl-load-com)
(arxload "laytrans")
;;;Layer translate
(or (member "laytrans.arx" (arx)) (arxload "laytrans"))
(acet-laytrans "D:/Samirs Info/Technical Data/ADNOC/LISP Test/Site_Grad_layTrans.dwg" 7)
)
How ever I get this error
Exception in ACET-LAYTRANS ARX COMMAND
Laytrans_Exception.jpg
It proceeds the program after clicking OK, but then I would not be able to run it through a script on multiple files.
Please advise.
Samir.