TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: MSTG007 on April 08, 2016, 10:16:08 AM

Title: Load Lisp within command line key shortcuts
Post by: MSTG007 on April 08, 2016, 10:16:08 AM
Ok. I am having another awesome brain.... issue today.

I have the following routine I would love to figure out. Just can't! lol.

(defun c:DCA () (command "(load "INCARRAYD - Dynmanic Copy Array")" "incarrayd")(princ))

Thanks for the help.

Title: Re: Load Lisp within command line key shortcuts
Post by: alanjt on April 08, 2016, 10:24:10 AM
(defun c:DCA (/)
  (load "fileanme" "")
  (c:commandName)
  (princ)
)


However, you should look into autoload.
Title: Re: Load Lisp within command line key shortcuts
Post by: MSTG007 on April 08, 2016, 10:25:58 AM
No your right. I do have a lot of the already in there. Thank you though for the help.