The Filter command offers two big advantages over other AutoCAD selection methods such as Qselect. It lets you fine-tune the selection based on a variety of criteria, and it lets you save selections for reuse in the future. Type Filter (or Fi) at the command prompt to bring up the Filter dialog box. You can start the command transparently by typing ‘filter (apostrophe filter) at any Select Objects prompt.
Caption: Filter dialog box.
The first step in creating a filter is to select the type. You can filter by object, property (layer, color, linetype, etc.), or object characteristics (text height, block insertion angle). Select the type of filter you want to create in the Select Filter pull-down menu.
Caption: The Select Filter pull-down menu displays the various types of filters available.
Then click on the Add to List button. Your filter choice will then appear in the window at the top of the dialog box—for example, Object = Line when you select Line in the Select Filter box. Depending on the filter choice, you may need to enter additional information (for example, layer name). Some filter types accept numeric coordinates, which you enter in the x, y, and z boxes below the Select Filter window. From the pull-down menu under the equal sign, you can select the following operators:
! not equal to
< less than
<= less than or equal to
> greater than
>= greater than or equal to
* all possibilities
Another way to add filter criteria is to select the Add Selected Object button at the bottom left of the Filter dialog box. This allows you to select an object that has the characteristics you want to include in your filter. AutoCAD automatically adds them to the filter set window, where you can add or delete as needed.
Caption: Use the Add Selected Object button to import properties of an object in your drawing. In this case, the properties of the rectangle at right have been added to the filter criteria list.
Continue to add filters to define your selection set. The Substitute button lets you insert a saved filter into the filter definition you’re currently working on.
You can add AND, OR,XOR, and NOT logical operators in the top window to further fine-tune your filters.
AND finds all objects that meet all criteria.
OR finds objects that meet any of the criteria.
XOR finds objects that meet one criterion or the other, but not both. Note that there must be two filters between Begin XOR and End XOR.
NOT excludes all objects that meet the criteria.
Select these operators from the bottom of the Select Filter pull-down list. You must include both a Begin and an End operator, and the Begin and End must be the same operator. Note that if two or more filters are listed without a logical operator, AutoCAD will treat them as if they were grouped with AND.
Caption: Build your named filter by adding filter criteria and logical operators to the top window.
When you’re done, enter a name in the Saveas window and click on the Apply button. Note: Don’t wait until the end to save your filter. Saves are when AutoCAD notifies you if you’ve done anything wrong, and it’s easier to fix problems as you go.
Filter names are saved to filter.nfl. To clear all named filters, press the Clear List button. |