Results 1 to 3 of 3

Thread: Zoom Shortcuts

  1. #1
    Active Member
    Join Date
    2003-11
    Posts
    52
    Login to Give a bone
    0

    Cool Zoom Shortcuts

    In previous releases I have added some lines to the ACAD(release#).lsp to define some shortcut commands for the various zoom functions. Had issues with the "Ribbon" panels not showing the other day and various other issues which I eventually fixed with a reinstall of ACAD Architecture 2011. Attempted to add the lines of code to get custom commands and keeps saying unknown command when enter the shortcut on keyboard. I finally attempted to save as a separate lisp file and "Appload". Still no custom commands.

    I am posting the zoom.lsp to see if anyone can make suggestions as to why the appload won't work. I even loaded in startup suite and get no error and says the app loads successfully. Still can't get my "ZA" for zoom all and other shortcuts. Any suggestions or assistance is greatly appreciated. Oh yes, I have loaded downed the session and even tried rebooting, still nothing.
    Attached Files Attached Files
    Last edited by imacad; 2010-07-22 at 01:30 PM. Reason: ok so I forgot the post

  2. #2
    The Silent Type RobertB's Avatar
    Join Date
    2000-01
    Location
    Seattle WA USA
    Posts
    5,859
    Login to Give a bone
    0

    Exclamation Re: Zoom Shortcuts

    Quote Originally Posted by imacad View Post
    In previous releases I have added some lines to the ACAD(release#).lsp to define some shortcut commands for the various zoom functions. Had issues with the "Ribbon" panels not showing the other day and various other issues which I eventually fixed with a reinstall of ACAD Architecture 2011. Attempted to add the lines of code to get custom commands and keeps saying unknown command when enter the shortcut on keyboard. I finally attempted to save as a separate lisp file and "Appload". Still no custom commands.

    I am posting the zoom.lsp to see if anyone can make suggestions as to why the appload won't work. I even loaded in startup suite and get no error and says the app loads successfully. Still can't get my "ZA" for zoom all and other shortcuts. Any suggestions or assistance is greatly appreciated. Oh yes, I have loaded downed the session and even tried rebooting, still nothing.
    First, do not modify the ACAD2011.lsp file. This is Autodesk's file for their use. They provide for two user files that will load automatically just like Acad2011.lsp and Acad2011Doc.lsp: Acad.lsp and AcadDoc.lsp. You simply create those two files if they don't exist.

    This is documented in TS21336.

    Here is the revised code (simply save it to AcadDoc.lsp):
    Code:
    ;;;  This is to setup shortcuts to zoom commands.
    (defun C:ZX () (command "._VIEW" "_R" "ALL") (princ))
    (defun C:ZA () (command "._ZOOM" "_A") (princ))
    (defun C:ZZ () (command "._ZOOM" "_E") (princ))
    (defun C:ZL () (command "._ZOOM" "_L") (princ))
    (defun C:ZC () (command "._ZOOM" "_C") (princ))
    (defun C:ZD () (command "._ZOOM" "_D") (princ))
    (defun C:ZP () (command "._ZOOM" "_P") (princ))
    (defun C:ZW () (command "._ZOOM" "_W") (princ))
    ;;; Silent load.
    (princ)
    The biggest issue was that the function command was misspelled on one line.
    R. Robert Bell
    Design Technology Manager
    Stantec
    Opinions expressed are mine alone and do not reflect the views of Stantec.

  3. #3
    Active Member
    Join Date
    2003-11
    Posts
    52
    Login to Give a bone
    0

    Talking Re: Zoom Shortcuts

    Thanks for the info. I have been on a deadline and hadn't had an opportunity to check back.

Similar Threads

  1. Replies: 0
    Last Post: 2011-10-24, 03:30 PM
  2. Data shortcuts multiple shortcuts of same alignment
    By jenniferchavez in forum AutoCAD Civil 3D - General
    Replies: 0
    Last Post: 2009-07-20, 03:28 PM
  3. Performance issues - Slow Zoom when using the Zoom command
    By gsmith.29521 in forum AutoCAD General
    Replies: 2
    Last Post: 2005-11-01, 08:53 PM
  4. ucsfollow zoom rotates view without zoom extents
    By dbroad in forum AutoCAD Wish List
    Replies: 2
    Last Post: 2004-10-05, 06:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •