count

Here’s a list of all possible wild-card characters when searching for names or text strings within product features.

CharacterDefinition
# (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: Support for the list of wild-card characters above is not available in all product features.

How to Count Blocks with Wildcard Specifications

Sometimes you’ll need to count blocks using a general name pattern. The most common wildcards used are “?” for a single character and * for any number of characters. For example, you can search for all the blocks beginning with the letter B using B, and all the blocks that have 4 as their second character using ?4.

  • Start the QSELECT command again, this time specifying a Wildcard Match with the Value: B* as shown below and click OK.

All blocks beginning with B are selected as shown below.

  • Press Esc to clear the selection set, and repeat the operation, except use ?4* in the Value field and click OK.

All instances of blocks A410 and B464 are selected and an accurate count is displayed in the Command window.

Read more

There are many ways in which you can count objects, or blocks, in AutoCAD.

Select Similar

The first method is to use the Select Similar command. There are multiple ways to access this command, but the easiest is to simply select a block in the drawing that you want to count, right-click, and choose Select Similar from the context menu.
You can then use the Properties palette to count the blocks that have been selected.

Note: Only objects of the same type (lines, circles, polylines, etc.) are considered similar. You can change other shared properties with the SELECTSIMILAR command, using the se (Settings) option. If you want to select different types of objects that share properties like color or line type, use Quick Select.

Quick Select

Use Quick Select to count specified objects in your drawing.

  1. Right-click in the drawing area, and choose Quick Select.
  2. In the Object Type list, select the type of object you want to count.
  3. Optionally, filter objects by setting a property, operator, and value for the type of objects you want to count.
  4. Click OK.

The number of objects displays at the Command prompt.

Count (What’s new in AutoCAD 2020)

Quickly and accurately count the instances of objects in a drawing. You can insert a table with the count data into the current drawing.

The Count feature offers visual count results and more control over the count criteria. Specify a single block or object in the model space to count its instances. You can also use the Count palette to display and manage the counted blocks in the current drawing.

When you’re in an active count, the Count toolbar displays at the top of the drawing area. The Count toolbar includes the number of objects and issues, along with other controls to manage the counted objects.

Commands for Counting Objects

These commands and system variables are used to count objects in the drawing.

Commands

  • COUNT (Command)
  • COUNTCLOSE (Command)
  • COUNTFIELD (Command)
  • COUNTLIST (Command)
  • COUNTLISTCLOSE (Command)
  • COUNTNAVNEXT (Command)
  • COUNTNAVPREV (Command)
  • COUNTTABLE (Command)

System Variables

  • COUNTCHECK (System Variable)
  • COUNTCOLOR (System Variable)
  • COUNTERRORCOLOR (System Variable)
  • COUNTERRORNUM (System Variable)
  • COUNTNUMBER (System Variable)
  • COUNTPALETTESTATE (System Variable)
  • COUNTSERVICE (System Variable)

See also:

How to Count the Circle in DWGSee CAD?

How to use block statistics table in DWGSee CAD? (Count Blocks)

Read more