Quick Pick - Creating a Second Pick Button That Automatically Snaps to Objects
.
Architectural Production Software 2005
Note: The following information is for educational purposes only and may or may not help you in your individual situation. KLH Software, Inc. assumes no liability for the use or misuse of any information contained in this document. In order for us to provide the best possible support for our software we are unable to provide help with the Tips & Tricks area or any questions or problems with its information. Got a good Tip or Trick of your own?

Submitted by:
The KLH Software support team

Contents:

 

"Quick Pick" overview

This is an alternative to using running object snaps. Running object snaps are where you set the OSMODE system variable to a value other than zero.

It allows you to assign a second pick button to your pointing device that has object snaps assigned to it. When you select a point with this "snap-pick" AutoCAD will go through all the snaps that you have assigned to this pick button and find the nearest/best one of these snaps in relation to the point you picked.

Drawing this way has several advantages over using running object snaps, but the main reason many have decided to use this method is that snaps are only assigned when you want them to be. How many times have you gone to move something only to have it zip to an unexpected location because your second point of displacement happened to accidentally snap to a nearby object.

back2top

 

How the "Quick Pick Button" works

The "quick pick button" works by applying a predefined set of object snaps on a selected point. It applies the object snaps all at once to the point selected and finds which of the snaps is applicable and closest to the point. To help clarify this we'll illustrate with some examples. For these examples we will assume that the quick, intersection, endpoint, midpoint, center, and insertion point object snaps are all being used on our "quick pick button".

Here we pressed the "quick-pick button" at a place where the closest applicable "snap to" point is the endpoint of the line so it snaps to the endpoint of the line as shown.

 

For this example we pressed the "quick-pick button" close to the intersection of the line and the circle. The line snaps to the intersection point.

 

Click near the midpoint and it snaps to the midpoint.

 

Click on the circle and it snaps to the center.

 

Click on some text and it snaps to the insertion point.

 

If you snap to a spot that none of the assigned object snaps can be applied to, no point will be entered.

This insures that when you snap to a point you will get an accurately snapped point. There is no "almost" or "close". You either have one of the object snaps applied or you get no point entered at all.

back2top

 

Requirements

Mouse:  A mouse that has more than just the standard right and left buttons (A scroll wheel can usually be used as the third button - most wheels can be pressed like a button as well as rolled).

Tablet:  A wintab compatible digitizer tablet with more than two buttons on the puck.

back2top

 

Setup

AutoCAD Releases up to 2005

First turn your object snaps off. You may do this by either clicking on the "OSNAP" button at the bottom of AutoCAD (release 2000 and later) or by typing in "OSMODE" at the command prompt and then entering 0 (zero).

To configure a button we need to edit the menu file that you are using. Open your menu file (the file with the ".MNU" extension) in an ASCII text editor such as Notepad.

If you are using a digitizer tablet the portion of the menu you are interested in is the "***BUTTONS1" section.

 

If you are using a mouse the portion of the menu you will change is the "***AUX1" section.

In either case the change you make will be the same. To make the third button your "snap-pick" button (this is usually the scroll wheel on mice that have scroll wheels) we will edit the second line (currently shown as "$P0=SNAP $p0=*").

Replace the existing line with the new line as shown above in red. List all the snaps that you would like to apply to the point selected; each separated by a comma. When you've got your snaps all entered type a semicolon and a backslash at the end of the line. The semicolon is the same as pressing the <Enter> key and the backslash enters the point where the crosshairs are at the time the button is pressed.

We use the quick, intersection, endpoint, midpoint, center, and insertion point object snaps for ours but you are free to experiment with any or all the snaps that you want. The only snap that we recommend NOT using is "nearest", it does not seem to work very well with the other snaps and can lead to some inaccurate snapping.

This is the only change that needs to be made to the menu, so save your changes and close the menu file. In AutoCAD type in "MENU" and reload your menu file from the source file (.MNU). This will redefine your button for you.

If you are using a digitizer tablet you are done and the button should work as described above.

Mouse users, with AutoCAD 2000 or later, and the scroll wheel set to be the "snap-pick" button also need to set the MBUTTONPAN system variable to 0 (zero). Type in "MBUTTONPAN" at the command prompt and then type in 0 and press <Enter>. You are now able to use your "snap-pick" button as described above.

back2top

 

AutoCAD Releases 2006 and 2007

First turn your object snaps off. You may do this by either clicking on the "OSNAP" button at the bottom of AutoCAD (release 2000 and later) or by typing in "OSMODE" at the command prompt and then entering 0 (zero).

To configure a button we need to edit the CUI file that you are using. Type in "CUI" at the command prompt and the dialog will appear to allow you to Customize your User Interface. 

 

 

 

 

 

In the box at the top left corner of the dialog click on the plus sign next to "Mouse Buttons". 

 

 

 

 

 

 

Then click on the plus sign next to "Click".

 

 

 

 

 

Now we will add the "Quick Pick Macro" to the "Button 3:" location.

 

If you are using the APS system the "Quick Pick Macro" will already be in the list of commands, if not here's how to create it.

 

 

 

 

 

 

 

Drag the "Quick Pick Macro" up and set it between the 2nd and 3rd button definitions like shown here.

 

 

 

 

 

 

Quite often despite where you drop the command it will be placed somewhere else.

 

 

 

 

 

Highlight and drag the macro up to where it belongs. 

 

 

 

 

Keep trying until it ends up in position 3 where it will be the wheel button. If you want the "Quick Pick" button to be used with the right-click button on your mouse you may place it there (position 2). Pucks often have many buttons and you may place the "Quick Pick" button wherever it is appropriate.

 

back2top

Is there anything that you find confusing or difficult? Please let us know so we can help!

Copyright 2006 KLH Software, Inc. All rights reserved. Reproduction or copying of content or images is prohibited.
Legal Notices and Trademarks | Privacy Policy | Contact KLH Software
Autodesk, AutoCAD, AutoCAD Architectural Desktop, AutoLISP, and Visual LISP are either registered trademarks or trademarks of Autodesk, Inc., in the USA and/or other countries. All other brand names, product names, or trademarks belong to their respective holders.