Window, Fence, Lasso, and More

Selecting objects is a large part of using AutoCAD. It seems simple at first glance, click one object or window around multiple objects. But once your drawing starts getting complex, there are other methods available that might make object selection easier.

Note: The video contains closed captions but no audio.
Note: Steps, images, and videos may differ slightly from your version of the product.

PICKFIRST and PICKADD System Variables

Before we get started, let's set a couple of system variables that will be needed later.

The Basics

Let's start with the basics: window, crossing window, polygon window, and crossing polygon window. After practicing each selection method, press Esc to clear the selection.

  1. Open a drawing of your own or you can open one of the sample drawings such as C:\Program Files\Autodesk\AutoCAD <release>\Sample\Database Connectivity\Floor Plan Sample.dwg.
    Note: The sample drawing will be opened as read-only. If you want to save the changes to the sample drawing, copy the file to your Documents folder and open it from there.
  2. Zoom in on an area of the drawing containing geometry.
    Note: See Have You Tried: Faster Zooming and Panning for tips on zooming.
  3. Window: Click once and then click to the right of the first point to specify the rectangular window. Only the objects that are completely enclosed in the rectangle are selected.
  4. Crossing Window: Click once and then click to the left of the first point to specify the rectangular window. Objects enclosed in and that are crossed by the window are selected. Notice that the crossing window looks different from a regular window selection.
  5. Window Polygon: Click once to start a window selection. At the Command prompt, enter wp for a window polygon. Continue specifying points. You don't need to close the polygon. It is automatically closed when you press Enter. Objects enclosed in the window polygon are selected.
    Note: The polygon can be any shape but polygon lines can't intersect.
  6. Crossing Polygon: Click once to start a window selection. At the Command prompt, enter cp for a crossing polygon. Continue specifying points on the screen. Objects enclosed in and that are crossed by the crossing polygon window are selected.
Note: You can reuse a previous selection set after it has been cleared. When you are prompted to select objects, enter p (Previous) or press Ctrl+Shift+L to use the previous selection set.

Fence and Lasso

In the following example, I want to select the doors. I could select them individually but using a fence can be faster.

Fence

  1. Without starting any command, click once on an empty space in the drawing.
    Notice the options at the Command prompt.

  2. At the Command prompt, enter f (Fence).
  3. Specify points to define a fence that passes through the doors.
  4. Press Esc to clear the selection.

Lasso

You could also select the doors using a lasso selection. To use a lasso, hold the mouse button down while dragging the mouse to create the lasso. When you release the mouse button, the lasso is completed. Let's try it.

  1. Click once on the drawing and drag the cursor slightly to the left.

    Notice that the command line indicates that you are currently using a crossing lasso, meaning that anything crossed by and enclosed in the lasso is selected.

    Note: If you drag to the right, you start with a window lasso.

    A lasso provides three modes: window, crossing window, or fence. Pressing the spacebar cycles through the lasso modes.

  2. Continue holding down the mouse button and press the Spacebar once.

    You are now using a window lasso. Any objects within the window are selected.

  3. Press Spacebar again.

    The lasso changes to a fence lasso. Any objects crossed by the fence are selected.

  4. Press Spacebar one more time to return to a crossing lasso.
  5. Drag the cursor to select the doors.
  6. Release the mouse button.
  7. Press Esc to clear the selection.

Deselecting Objects

Now that you've practiced these selection methods, you might be wondering how you remove objects from your selection set without having to start over.

  1. Use any of the previous selection methods to select objects.

    In the Floor Plan Sample.dwg, I've selected these objects, but I don't want to include the names in the selection set.

  2. While your selection set is active, hold down the Shift key and click each object you want to remove from the selection set.
    Note: If this doesn't work as expected, make sure that the PICKADD system variable is set to 2.

    I'd also like to remove the objects in the lower right cubicle from the selection set.

  3. While still holding down the Shift key, draw a crossing window for the objects you want to remove from the selection set.
    Note: When you release the Shift key, any objects selected after that are again added to the current selection set.

Using the Shift key to remove objects from a selection set makes it easier to select just the objects you want when working on crowded drawings.

Limiting the Objects Selected

There are several ways that you can limit or filter when selecting objects.

Let's take a closer look at SELECTSIMILAR and QSELECT.

SELECTSIMILAR

In this example, I want to select all the cubicle outlines in my drawing.

  1. At the Command prompt, enter SELECTSIMILAR.
  2. Enter se for Settings.
  3. Make sure that Layer and Name are selected, and then click OK.
    Note: The Name option matches named objects like block names but also matches the object type for unnamed objects, such as lines and circles.
  4. Select one of the lines that forms a cubicle.
    All lines on that layer are selected.
    Tip: To verify the selection, you can use the ISOLATEOBJECTS command to suppress the display of all objects except those selected. Enter UNISOLATEOBJECTS to redisplay all affected objects.
  5. Press Esc to clear the selection.
Note: You can also select an object, right-click, and choose Select Similar from the shortcut menu.

QSELECT

The QSELECT command has some options that aren't available with SELECTSIMILAR. For example:

  • You can pre-select the objects to apply the filter to, rather than applying it to the entire drawing.
  • You can apply an operator to the property value you want to filter on, such as <> Equal (Not Equal) to a specified layer name.
  • You can include or exclude the objects from your selection set.

Let's say I want to select all the blocks that match the name DESK*.

  1. At the Command prompt, enter QSELECT, or click Home tab > Utilities panel > Quick Select. Find
  2. From the Object type drop-down list, select Block Reference.
  3. From the Properties list, select Name.
  4. On the Operator drop-down menu, select * Wildcard Match.
  5. Enter DESK* as the value.
  6. Click OK.

    All the blocks with names that match the criteria are selected.

  7. Press Esc to clear the selection.
Note: You can also right-click and choose Quick Select from the shortcut menu.

Selection Settings

There are several settings that affect object selection.

  1. Right-click in the drawing area and choose Options.
  2. In the Options dialog box, go to the Selection tab.

    Let's look at a few in the Selection Modes area:

  3. Noun/Verb Selection. (PICKFIRST) Make sure this is checked if you want to be able to select objects first and then select a command to act on that selection set.
  4. Use Shift to Add to Selection. (PICKADD)
    • Cleared (PICKADD=2) - Each time you select objects, they are added to the current selection set. Holding down the Shift key while selecting removes the objects from the current selection set.
    • Selected (PICKADD=0) - Each time you select objects, a new selection set is created. If you hold the Shift key while selecting, objects already in the selection set are removed, new objects are added.
  5. Object Grouping. When selected, all objects in a group are selected when you select one object in that group. You can also toggle this by pressing Ctrl+Shift+A. For more information about groups, see Have You Tried: Groups.
  6. Implied Windowing. When selected, the drawing of a selection window automatically starts when you pick a point outside an object. If cleared, you would need to specify the window options when prompted to select objects.
  7. Allow Press and Drag for Lasso. (PICKAUTO) Clear this if you want to turn off lasso selection allowing you to click and drag to create a selection window.

Related Have You Tried Articles

Object Selection Related Commands and System Variables

Here are some frequently used commands and system variables related to object selection.

Command Description
FILTER Creates a list of requirements that an object must meet to be included in a selection set.
QSELECT Creates a selection set based on filtering criteria.
SELECT Places selected objects in the Previous selection set.
SELECTSIMILAR Finds all objects within the current drawing that match the properties of selected objects, and then adds them to the selection set.
System Variable Description Default Value Saved In
PICKADD Controls whether subsequent selections replace the current selection set or add to it. 2 User-settings
PICKAUTO Controls automatic windowing for object selection. 5 (bitcode) Registry
PICKBOX Sets the object selection target height, in device-independent pixels. 3 Registry
PICKDRAG Controls the method of drawing a selection window. 2 Registry
PICKFIRST Controls whether you can select objects before you start a command. 1 Registry
SELECTIONAREA Controls the display of effects for selection areas. 1 Registry
SELECTIONAREAOPACITY Controls the transparency of the selection area during window and crossing selection. 25 Registry
SELECTIONCYCLING Controls the display options associated with overlapping objects and selection cycling. 0 Registry
SELECTIONEFFECT Specifies the visual effect used when objects are selected. 1 Registry
SELECTIONEFFECTCOLOR Sets the color of the glowing highlighting effect on object selection. 0 Registry
SELECTIONOFFSCREEN Controls the selection of objects that are off-screen. 1 Registry
SELECTIONPREVIEW Controls the display of selection previewing. 3 (bitcode) Registry
SELECTIONPREVIEWLIMIT Limits the number of objects that can display preview highlighting during a window or crossing selection. 20000 Registry
SELECTSIMILARMODE Controls which properties must match for an object of the same type to be selected with SELECTSIMILAR. 130 (bitcode) User-settings