• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

upload a lisp after error

  • Thread starter Thread starter Angelo2449
  • Start date Start date

Angelo2449

Guest
Hello everyone,
when you try to run a lisp without uploading it, you receive the message:
"standard command contactor unknown "standard contact". press f1 for the guide"
I would like to write a lisp that, evaluating the error, upload the desired program, perhaps with a condition.
thanks to those who want to help me and others too!
 
(type c:standard contact) returns nil if the command does not exist.
(if (type c:standard contact) nil) (load”miofile”)) standard counter
 
thanks rpor66,
works perfectly but with a less bracket:
Code:
(type c: scalaimmagini)
(if (type c:scalaimmagini) nil) (load "c:\\\autocadsupporto\\\\\\\scaleimmagini.lsp")
 
the error is more extended... .
(if)= (type c:scalaimmagini) nil (load) scaleimmagini)
 
in the first version it worked, now in this no!
What's wrong?
Code:
 (defun c: tutto (/)

(setq dacaricarex (cc: "dacaricarex))

(by "ndacaracarex xxxx")
(WHISPERING)
(pr "n")

(cond
(= if you want to "c: scalaimmagini")
(type if carex)
(if (= (type dacaricarex) nil)
(load "c:\\ autocadsupporto\\ lisptre\\ scalaimmagini.lsp")
(scalaimmagini)
); if
(setq if carex nil)
); if

);; cond

);; defun
grazie.
 
Code:
(defunc c:tutto (/)

(if (= (type "c:scalaimmagini") nil)
(Translated with Google Translate)
)
(c: Scalimmagini)

);
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top