TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: hudster on February 17, 2004, 04:53:17 AM
-
I want to write a lisp routing that uses the F12 key to open a drawing, bind it, purge it, dwf it and then close it.
How do I define the F12 key? do I write "F12" or is there a special code for it?
I hope this makes sense.
-
Why not use a macro for the commands and assign to the F12 key via you accelerator keys.
-
Function keys are modified in the ***ACCELERATORS portion of the MNS/MNU.
The format is:
["F12"]<whatevermacroyouwanttorun>
~~~~~~~~~~
but
~~~~~~~~~~
If you want it to run automatically, I'd suggest wrting a lisp function in your ACAD.lsp that does what you wish. I'm not familiar with DWF, but the rest is relatively easy to program.