Creating and Applying Filters for Entity Selection

Use the SelectionFilter command to filter entities for selection.

You can

After you select entities based on the filter, modify the entities using the modification commands or the Properties palette.

Note: The command does not create a selection set. It defines criteria to apply on a selection set.

To create and apply selection filters:

  1. Do one of the following:
  2. Type SelectionFilter at the command prompt.
  3. In the dialog box, in Filter type, select an entity type, an entity type with property, or a property.
  4. Click Add Filter Type  to add the item to the filter list.

    If you selected an entity with property:

    1. Specify a relational operator (*, =, !=, >, >=, <, or <=).
    2. Specify a value.
    3. Click .
  5. In Operator, set a logical operator (AND, OR, NOT, or XOR) if needed.

    Use logical operators to group filter expressions.

  6. If you selected a logical operator, click Add Operator  to add the operator to the filter list.
  7. Use options as needed:
  8. Repeat steps 2 to 6 as needed.
  9. Click .

    The selection filter is now active.

    Note: At this point no selection set is created. Unlike the SmartSelect command, it defines criteria to apply on a selection set. It is important to continue with the next step.

  10. In the graphics area, specify the entities to which you want to apply the selection filter.

    You can use any of the entity selection methods.

  11. Press Enter to conclude entity selection.
  12. Run a modification command.

    The command uses the preselection (step 10). It does not prompt to specify entities.

To reapply selection filters with the next modification command:

  1. Run a modification command.
  2. Specify the Previous option at the next Specify entities prompt.

Using selection filters transparently

You can apply selection filters as transparent command by typing 'SelectionFilter at the "Specify entities" prompt of modification commands.

To use selection filters transparently:

  1. Invoke a command to modify drawing entities (for example, Copy).
  2. At the "Specify entities" prompt, type 'SelectionFilter.
  3. In the Selection Filter dialog box, define a new filter or select an existing named filters.
  4. Click .
  5. In the graphics area, specify the entities to which you want to apply the selection filter and press Enter.
  6. Follow the prompts of the modification command.

Working with named selection filters

You can save selection filters under a name and reapply the named filters.

Selection filters are stored in the user's profile, not in the drawing. Thus you can apply them on your computer, but not elsewhere.

Note: Selection filters parameters that do not match property settings within the current drawing (such as Layer name specifications) are ignored when applying the filter.

To save named selection filters:

  1. In the Selection Filter dialog box, define a selection filter as described above.
  2. In Named filter, type a name for the filter and click Save New Filter .

    The selection filter name appears in the Named filter list.

To apply saved selection filters:

  1. Do one of the following:
  2. In Named filter, select the name of the selection filter to apply.
  3. Click .
  4. Invoke a modification command.
  5. In the graphics area, specify the entities to which you want to apply the selection filter.

To delete named selection filters:

Operators Overview

Relational Operators

Operator Description Examples
* Equal to any value All Circles without any restriction
= Equal All Circles with radius=2.54
!= Unequal All Circles with radius other than 2.54
> Greater than All Circles with radius greater than 2.54
>= Greater than or equal to All Circles with radius greater than or equal to 2.54
< Lower than All Circles with radius less than 2.54
<= Lower than or equal to All Circles with radius less than or equal to 2.54

Logical Operators

Operator Description Examples
AND Filter items that meet all criteria (can enclose one or more criteria) All Circles on Layer "Screws"
OR Filter items that meet any of the criteria (can enclose one or more criteria) All Circles and all entities on Layer "Screws"
NOT Filter items that do not meet the criteria (must enclose only one criterion) All entities on Layer "Screws" that are not Circles (if applied to the Circle entity type criterion)
XOR Filter items that meet one or the other criteria, but not both (must enclose two criteria) All Circles not on Layer "Screws" and all entities on Layer "Screws" that are not Circles

Examples

The following examples show the filter list contents.

All Circles with a radius greater than 2.54 drawing units:

 AND
      Circle
           Radius > 2.54

All Circles and all entities on Layer "Screws":

 OR
      Circle
      Layer "Screws"

Access

Command: SelectionFilter

Menu: Tools > Selection Filter

Related Topics

Applying Entity Selection Methods

Creating Entity Selections Based on Filtering Criteria

Selecting Entities of the Same Type and Shared Properties

Parent Topic

Selecting Entities for Modification