Author Topic: Key-in For Macro  (Read 1534 times)

0 Members and 1 Guest are viewing this topic.

M-dub

  • Guest
Key-in For Macro
« on: August 29, 2007, 11:32:20 AM »
(Hoping to be flabbergasted)

In any of the newer releases of AutoCAD, is it possible to assign key in shortcuts to macros?

It would be nice if I could add macros to my .pgp file.  I would rather use key-ins rather than buttons.

Arizona

  • Guest
Re: Key-in For Macro
« Reply #1 on: August 29, 2007, 11:36:12 AM »
In any of the newer releases of AutoCAD, is it possible to assign key in shortcuts to macros?

It would be nice if I could add macros to my .pgp file.  I would rather use key-ins rather than buttons.
Translation from Microstation...
Assign a key to run a small VBA/macro

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4076
Re: Key-in For Macro
« Reply #2 on: August 29, 2007, 11:53:55 AM »
what about lisp?
Code: [Select]
(defun c:2keyshortcut()
(command "vbarun" "yourmacroname")
)
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

Kate M

  • Guest
Re: Key-in For Macro
« Reply #3 on: August 29, 2007, 01:47:53 PM »
Well, sort of.

It's in the "keyboard shortcuts" area of the CUI, which cover things like SHIFT+(stuff) and CTRL+(stuff). So it's not exactly the same as the PGP file, but it still doesn't involve picking a button.

There's a quick explanation here, and more in the help files.

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Re: Key-in For Macro
« Reply #4 on: August 29, 2007, 01:52:53 PM »
Well, sort of.

It's in the "keyboard shortcuts" area of the CUI, which cover things like SHIFT+(stuff) and CTRL+(stuff). So it's not exactly the same as the PGP file, but it still doesn't involve picking a button.

You can also you the number pad keys as short-cuts.
TheSwamp.org  (serving the CAD community since 2003)

M-dub

  • Guest
Re: Key-in For Macro
« Reply #5 on: August 29, 2007, 01:59:56 PM »
Cool, cool and cool.  :)