Results 1 to 6 of 6

Thread: Hot key/shortcut key for Polar, Osnap & Otrack

  1. #1
    Member
    Join Date
    2004-12
    Posts
    12
    0 Did you find this post helpful? Yes

    Default Hot key/shortcut key for Polar, Osnap & Otrack

    I can't find a way to make a hot key/shortcut key or a customize button to turn these 3 commands on and off at one time.

    I use the revision clouds a lot, but I have to turn off all three of these to use it to make my clouds. I want to make a button so I can turn on/off these 3 things at one time. I hate having to turn off 3 of them one by one just so I can make a cloud, then having to turn all 3 back on again one by one.

    I'm talking about F3, F10 & F11. Put these in one shortcut key so I can turn on/ff.

  2. #2
    I could stop if I wanted to scwegner's Avatar
    Join Date
    2004-12
    Location
    Minneapolis, MN
    Posts
    449
    0 Did you find this post helpful? Yes

    Default Re: Hot key/shortcut key for Polar, Osnap & Otrack

    Quote Originally Posted by son.do
    I can't find a way to make a hot key/shortcut key or a customize button to turn these 3 commands on and off at one time.

    I use the revision clouds a lot, but I have to turn off all three of these to use it to make my clouds. I want to make a button so I can turn on/off these 3 things at one time. I hate having to turn off 3 of them one by one just so I can make a cloud, then having to turn all 3 back on again one by one.

    I'm talking about F3, F10 & F11. Put these in one shortcut key so I can turn on/ff.
    Sounds like you should make a lisp that will change them and then set a hotkey to run the lisp or type at the command line. Or just use a button macro. Do you need help doing that?

  3. #3
    Administrator Mike.Perry's Avatar
    Join Date
    2001-03
    Posts
    13,516
    0 Did you find this post helpful? Yes

    Default Re: Hot key/shortcut key for Polar, Osnap & Otrack

    Hi

    Please note I've *moved* this thread from the AutoCAD Forum to this one as I feel this particular Forum is a more appropriate place for such a topic.

    Thanks, Mike

    Forum Moderator
    Last edited by Mike.Perry; 2005-02-01 at 11:41 AM. Reason: Correct bad formatting.

  4. #4
    Member
    Join Date
    2004-12
    Posts
    12
    0 Did you find this post helpful? Yes

    Default Re: Hot key/shortcut key for Polar, Osnap & Otrack

    I don't have a clue where to start about lisp. Yes, I need you to walk me through it.

    thanks

  5. #5
    I could stop if I wanted to scwegner's Avatar
    Join Date
    2004-12
    Location
    Minneapolis, MN
    Posts
    449
    0 Did you find this post helpful? Yes

    Default Re: Hot key/shortcut key for Polar, Osnap & Otrack

    Quote Originally Posted by son.do
    I don't have a clue where to start about lisp. Yes, I need you to walk me through it.

    thanks
    Wait. Just a thought, but why? I know they re-did revcloud for 2004 and 2005 so it's different from what I'm using but those settings don't make a difference for me. Is that not the case anymore? Whatever, I'll just trust you.
    Anyway, here's a very simple little LISP. There are probably many better ways to do it, but I don't see anyone else jumping in so:

    Code:
    ;;;Toggles osnaps and polar tracking on or off
    ;;;I've added a few notes to explain what's happening in case you're curious
    
    (defun c:toggle (/ ocmdecho);names the function and lists temporary variables
    ;;;it is written so thatit runs when you type "toggle" at the command line
    ;;;to change the keys you type in, change toggle above to whatever you want
    ;;;just be sure what you choose isn't already a command
    
    (setq ocmdecho (getvar "cmdecho"));save command line echo settings
    (setvar "cmdecho" 0);turn off command line echo
    
    (if
      (= (getvar "autosnap") 0);if polar and otrack are off
      (setvar "autosnap" 63);then turn on polar and otrack
      (setvar "autosnap" 0);else turn them off
    );close if
    
    (setvar "cmdecho" ocmdecho);restore command line echo settings
    
    (princ)
    )
    Copy that to notepad or something and save it as toggle.lsp (or something else ending in .lsp) in your AutoCAD support folder. Then open CAD and go to TOOLS>>>AUTOLISP>>>LOAD. When the dialog box opens up, click on "startup suite" then "add". Browse to where you just saved toggle.lsp and select it. Once you've done that, any time you load CAD you can type "toggle" (or whatever you changed it to) on the command line and it'll turn off polar and otrack.
    It sounds like you already know how to change hotkeys, so just make one that acts as if you typed in "toggle" (or whatever you changed it to).
    Clear as mud?

  6. #6
    Member
    Join Date
    2004-12
    Posts
    12
    0 Did you find this post helpful? Yes

    Default Re: Hot key/shortcut key for Polar, Osnap & Otrack

    Actually, the marker for osnaps is turned off. When I type toggle, it turns off polar, otrack, and turns off the autosnap setting marker. So I have to go to options and check the box for marker in autosnap settings to turn the osnaps marker on.

    Can you just make it so it turns off polar and otrack, but not the autosnap setting marker.

    Thanks
    Last edited by son.do; 2005-01-28 at 03:50 PM.

Similar Threads

  1. Raster problem with Osnap on/off shortcut
    By mdharrisUK in forum Raster Design - General
    Replies: 2
    Last Post: 2010-03-20, 11:40 PM
  2. Replies: 5
    Last Post: 2007-04-26, 07:19 PM
  3. Osnap shortcut not working
    By tony.nichols in forum AutoCAD General
    Replies: 5
    Last Post: 2006-03-22, 11:19 PM
  4. osnap shortcut in AcadLT 2002
    By briand.87290 in forum AutoCAD Customization
    Replies: 5
    Last Post: 2005-06-30, 03:38 PM
  5. OTrack NOT tracking
    By amy.stuart in forum AutoCAD General
    Replies: 1
    Last Post: 2005-04-21, 11:09 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
  •