Results 1 to 9 of 9

Thread: HOT! Keys

  1. #1
    Woo! Hoo! my 1st post
    Join Date
    2008-09
    Posts
    1
    Login to Give a bone
    0

    Default HOT! Keys

    I am a shortcut freak, if I can cut down the number of key strokes or amount I have to move and click my mouse I will. You can create all kinds of shortcuts using SHIFT, CTRL and the ALT keys by going thru CUI. But I found this cumbersome trying to get all the keys pressed at the same time, etc. Then I was shown the acad.pgp file and I could create all kinds of hot keys on the left side of my keyboard (I am right-handed). This is a completely editable text file were one can create 1, 2, 3 (or more) letter/number combination hot keys.
    It can be accessed from the Ribbon (I am using AutoCAD Architecture 2011, but it's also on 2010 and existed back to Architectural Desktop 2004 when I first started using it. A pgp file also exists for AutoCAD LT and AutoCAD).
    Go to the Mangage tab, Customize panel then to "Edit PGP". Work out what the command is, figure out a couple of hot keys and add it to the list along with the command line command in the same format at the rest.
    There is a boatload of existing hotkeys already and they are in alphabetical order, so there may be one for you command already.
    Save the file, go back to your drawing, re-initalize (REINIT on the command line and check the PGP File box and then OK) or close and re-open CAD and you're ready to use your new shortcut.
    If a command line command exists, you can make a shortcut.
    And if you upgrade your software, the pgp file does migrate with the rest of your settings!

    Mike V.
    Custom Mill Shop Drawings In-charge
    CAD Manager
    Last edited by mike_vh; 2010-08-31 at 03:43 AM. Reason: Add data

  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

    Default Re: HOT! Keys

    And then you'll wish that you could create shortcuts that not only start a command but also execute an option, such as ZE=Zoom,Extents.

    Which means that you will take the next step in AutoCAD customization addiction by discovering Visual LISP:
    Code:
    (defun C:ZE () (command "._Zoom" "_extents") (princ))
    Enjoy, my padawan.
    R. Robert Bell
    Design Technology Manager
    Stantec
    Opinions expressed are mine alone and do not reflect the views of Stantec.

  3. #3
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,809
    Login to Give a bone
    0

    Default Re: HOT! Keys

    One more note...

    Shortcuts defined with lisp overwrite those defined in the PGP file.
    R.K. McSwain | CAD Panacea |

  4. #4
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,723
    Login to Give a bone
    0

    Default Re: HOT! Keys

    Quote Originally Posted by RobertB View Post
    And then you'll wish that you could create shortcuts that not only start a command but also execute an option, such as ZE=Zoom,Extents.

    Which means that you will take the next step in AutoCAD customization addiction by discovering Visual LISP:
    Code:
    (defun C:ZE () (command "._Zoom" "_extents") (princ))
    Enjoy, my padawan.
    Forgive me, my Master, but is that code not Auto LISP...?

    I believe you meant this to be your Visual LISP equivalent:

    Code:
    (defun c:ZE ()
      (vl-load-com)
      (vla-zoomextents
        (cond
          (*acadDoc*)
          ((setq *acadDoc* (vlax-get-acad-object)))))
      (princ)) ;_end defun
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

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

    Talking Re: HOT! Keys

    Quote Originally Posted by RenderMan View Post
    Forgive me, my Master, but is that code not Auto LISP...?

    I believe you meant this to be your Visual LISP equivalent:
    Ah, my young padawan, let me show the ways of the Force...

    Visual LISP is the environment for developing and executing AutoLISP code. AutoLISP is the language. The Visual LISP environment provides access to ActiveX (in addition to the VLIDE and compiling). The language is still AutoLISP but Visual LISP extends AutoLISP. The environment in which the code works, be it my example or yours, is Visual LISP. (See the AutoLISP Developer's Guide, Using the Visual LISP Environment, Getting Started, Loading and Running AutoLISP Programs, Using Extended AutoLISP Functions. Note how the ActiveX support is spoken of as extending AutoLISP.)

    I've always preferred to think of Visual LISP as AutoLISP v2.0. It's similar to the move from BASIC to Visual Basic. If I developed a small bit of code in VB that was exactly like code from BASIC would we call that code BASIC when it was developed in the Visual Basic environment? Probably not. We would say, "Look at this VB sample."

    So at this point you say, "But master, the code is AutoLISP!" To which I say, "Ah, but my young padawan, the Force, er, Visual LISP, surrounds and affects all life, er, AutoLISP code."
    R. Robert Bell
    Design Technology Manager
    Stantec
    Opinions expressed are mine alone and do not reflect the views of Stantec.

  6. #6
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,809
    Login to Give a bone
    0

    Default Re: HOT! Keys

    Robert, for some reason I want to call you Yoda now...
    R.K. McSwain | CAD Panacea |

  7. #7
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,723
    Login to Give a bone
    0

    Default Re: HOT! Keys

    Quote Originally Posted by RobertB View Post
    Ah, my young padawan, let me show the ways of the Force...
    ...
    So at this point you say, "But master, the code is AutoLISP!" To which I say, "Ah, but my young padawan, the Force, er, Visual LISP, surrounds and affects all life, er, AutoLISP code."
    (If only for the sake of perpetuating the Star Wars references...)

    "Master, I've disappointed you. I have not been very appreciative of your training... I have been arrogant and I apologize... I've just been so frustrated with the Council." ―Anakin to Obi-Wan
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

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

    Default Re: HOT! Keys

    Quote Originally Posted by rkmcswain View Post
    Robert, for some reason I want to call you Yoda now...
    Hideous like Yoda am I.

    Quote Originally Posted by RenderMan View Post
    (If only for the sake of perpetuating the Star Wars references...)

    "Master, I've disappointed you. I have not been very appreciative of your training... I have been arrogant and I apologize... I've just been so frustrated with the Council." ―Anakin to Obi-Wan
    So I finally got around to reading Episode 1 and Jar-Jar was just as irritating in the book as the movie. <sigh>
    R. Robert Bell
    Design Technology Manager
    Stantec
    Opinions expressed are mine alone and do not reflect the views of Stantec.

  9. #9
    Member
    Join Date
    2006-11
    Posts
    2
    Login to Give a bone
    0

    Default Re: HOT! Keys

    Just read your thread.
    Loved the Star Wars reference. Made me smile after a very long day
    (besides the useful info)

Similar Threads

  1. Product Keys?
    By Chad Smith in forum Revit - Platform
    Replies: 2
    Last Post: 2009-07-27, 02:29 PM
  2. Hot Keys
    By bparrell in forum NavisWorks - General
    Replies: 13
    Last Post: 2009-03-11, 01:11 AM
  3. Quick Keys
    By greg.gebert978266 in forum Revit Architecture - General
    Replies: 2
    Last Post: 2008-07-31, 05:27 PM
  4. Is there a way to change your quick keys, or short cut keys?
    By smooth shoes in forum AutoCAD General
    Replies: 3
    Last Post: 2006-11-16, 12:22 AM
  5. Help... Hot Keys???
    By Girlsrfast2 in forum Revit Architecture - General
    Replies: 3
    Last Post: 2006-05-24, 05:52 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
  •