About Filtering and Sorting the List of Layers

You can control which layer names are listed in the Layer Properties Manager, and sort them by name or by a property setting.

Sort the Layer List

Once you have created layers, you can sort them by name or other properties. In the Layer Properties Manager, click the column heading to sort layers by the property in that column. Layer names can be sorted in ascending or descending alphanumeric order.

Note: The SORTORDER system variable controls whether layer lists are sorted in natural or in ASCII order.

List Layers Using Wild-Card Characters

You can use wild-card characters in the Search box of the Layer Properties Manager to list layers by name. For example, if you enter 02* in the Search box, all layers that begin with the characters 02 are listed.

The following wildcards are available:

Character

Definition

# (pound)

Matches any numeric digit

@ (at)

Matches any alphabetic character

. (period)

Matches any non-alphanumeric character

* (asterisk)

Matches any string and can be used anywhere in the search string

? (question mark)

Matches any single character; for example, ?BC matches ABC, 3BC, and so on

~ (tilde)

Matches anything but the pattern; for example; ~*AB*matches all strings that don't contain AB

[ ]

Matches any one of the characters enclosed; for example, [AB]C matches AC and BC

[~]

Matches any character not enclosed; for example, [~AB]C matches XC but not AC

[-]

Specifies a range for a single character; for example, [A-G]C matches AC, BC, and so on to GC, but not HC

` (reverse quote)

Reads the next character literally; for example, `~AB matches ~AB

Note: To find a layer name that contains a wild-card character, precede the character with a reverse quote (`) so that it is not interpreted as a wild-card character.

Filter the Layer List

A layer filter limits the display of layer names in the Layer Properties Manager, and in the Layer control on ribbon and the Layers toolbar. In a large drawing, you can use layer filters to display only the layers that you need.

There are two kinds of layer filters:

There are five predefined filters: