Wildcards are special characters that represent one or more characters in a string of characters. AutoCAD supports most of the popular wildcard characters. You can see a list of supported wildcard characters in AutoCAD on this Autodesk knowledge network page.

As an example, XYZ* would mean any string of characters where first three characters are XYZ and remaining characters can be anything represented by the * wildcard character. Similarly XYZ??ABC would mean a string of characters starting with XYZ followed by next two characters that can be anything represented with ?? wildcard then remaining three characters as ABC.

Although the wildcards can be used in a variety of situations but for the sake of simplicity, I will explain its application in two situations ie Find and Replace and Qselect. I will use this sample drawing for explaining this tip.

Wildcards in AutoCAD

Wildcards in Find and Replace:

You can find and replace text string using FIND command of AutoCAD. Let’s say we have a drawing in which lifts are mentioned as LIFT X where X indicates lift number. In order to change this name from LIFT X to ELEV X, we will use FIND command. Type FIND and press enter to start the command, Find and Replace window as shown in the image below will open.

wildcard characters in AutoCAD

Expand the window by clicking the down pointing arrow on the lower left side of the window and make sure use wildcards radio button is checked as shown in the image above.

You can select types of text to include in search from Text Types panel of Find and Replace window, in order to include all text types select all radio buttons as shown in the image above.

Now type LIFT # in Find what field and type ELEV in the Replace with the field. Now click in checkbox marked as List results under Replace with field and click on find. A list of all text entries with first four characters as LIFT followed by a blank space and a numeral value will be listed.

In the wildcard entry above # represents a numeric character. Select all the text elements that you want to change, you can select multiple entries by pressing and holding CTRL key.

Once you have selected all text entries to change click on Replace button. All text entries will now be changed to ELEV X, click on Done button to exit the Find and Replace window.

Using Wildcards with QSELECT:

To select text from drawing you can also use wildcard entries with QSELECT command.

Type QSELECT and press enter, now select Entire drawing in apply to drop down menu. Then select Text from object type drop down menu and select Contents from properties panel. Then select * Wildcard Match from operator drop down menu and type LIFT* in the value field as shown in the image below.

Once you have made all these settings click on OK to close the Quick Select window, all the text elements contacting first four characters as LIFT will be selected.

wildcard characters in AutoCAD

There are also other applications of wildcard entries in AutoCAD like using it in layer filters, layer search and searching for files in AutoCAD.

Do you have questions related to this tip? let us know in the comments below.

Get 150 AutoCAD commands and AutoCAD Quiz eBook in your inbox
Subscribe Now
No Spam, Unsubscribe anytime.