editing zoom for short cut

Discussion in 'AutoCAD' started by renneker, Jul 26, 2003.

  1. renneker

    renneker Guest

    I would like to know which file to edit pgp or ?. How do I make the keyboard to be able to use ze, zd, za and ect.
    Instead of z then enter then d,a,e,and ect.
    Please reply,
    James Renneker
     
    renneker, Jul 26, 2003
    #1
  2. Actually, you *cannot* add shortcuts of commands *and their options* to the
    Acad.pgp file; it only permits shortcuts of the commands themselves.

    The simple (and effective) Visual LISP function that Joe posted works well,
    but would be better if placed in the AcadDoc.lsp file, instead of the
    Acad.lsp file (as Acad.lsp is normally loaded only once per session, while
    AcadDoc.lsp is loaded for each document opened).

    There is also a bug since A2k <sigh, fix it Autodesk!> that might affect
    you. In some situations, if you select a drawing off the Most Recent Used
    list on the File menu, none of the code in the Acad*.lsp files will run.
    However, if you have a customized menu, place all this code in the menu's
    ..mnl file, and it *will* load.


    --
    R. Robert Bell, MCSE
    www.AcadX.com


    | You can do it in acad.pgp or place lines like:
    | (defun c:ze () (command ".Zoom" "e"))
    | in your acad.lsp file.
    |
    | For customization discussions you should post in:
    | autodesk.autocad.customization
    | I would like to know which file to edit pgp or ?. How do I make the
    keyboard to be able to use ze, zd, za and ect.
    | Instead of z then enter then d,a,e,and ect.
    | Please reply,
    | James Renneker
     
    R. Robert Bell, Jul 26, 2003
    #2
  3. The point is, that your advice won't work for the "typical" installation. It
    might work for you, but you posted your advice for the general public.


    --
    R. Robert Bell, MCSE
    www.AcadX.com


    |
    | Works for me in 2004. Why fix something that works?
    |
    |
     
    R. Robert Bell, Jul 28, 2003
    #3
  4. renneker

    Bratz2 Guest

    You could make enter them in the ACAD.lsp file, and then under preferences "system", tell AutoCAD to load the ACAD.lsp file with every drawing. But how would this affect memory? Would it not accomplish the same as if placed in the "acad2000doc.lsp". And, what is the primary differences between ACAD.lsp, and the ACAD2000doc.lsp?
     
    Bratz2, Jul 28, 2003
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.