Author Topic: Load Lisp within command line key shortcuts  (Read 992 times)

0 Members and 1 Guest are viewing this topic.

MSTG007

  • Gator
  • Posts: 2603
  • I can't remeber what I already asked! I need help!
Load Lisp within command line key shortcuts
« 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.

Civil3D 2020

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Load Lisp within command line key shortcuts
« Reply #1 on: April 08, 2016, 10:24:10 AM »
(defun c:DCA (/)
  (load "fileanme" "")
  (c:commandName)
  (princ)
)


However, you should look into autoload.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

MSTG007

  • Gator
  • Posts: 2603
  • I can't remeber what I already asked! I need help!
Re: Load Lisp within command line key shortcuts
« Reply #2 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.
Civil3D 2020