CADXChange

Guides/Drawing standards

Search Text in Multiple DWG Files — Find Tags, Attributes and Blocks in a Folder

Made with DwgSearch
DwgSearch showing 16 results for FD-204, found in plain text and in block attributes across several drawings

Short answer: AutoCAD's FIND command searches the drawing you have open, including its xrefs if you turn that option on. It does not go through a folder of closed drawings. DesignCenter can search files for a block definition by name, but that is not a search of the text and attribute values inside them.

So the question "which drawings mention this?" usually ends in opening files one by one: a tag that is being renumbered, a discontinued part, a client name that has to be removed, a block that is about to be replaced.

This guide uses DwgSearch, the free search tool in CADXChange Toolkit. It indexes a folder once, then searches that index. It only reads the drawings, and it does not need AutoCAD. The example is a project of 60 drawings and the fire damper tag FD-204.

1. Index the project folder

Open DwgSearch, click Choose Folder… and pick the top folder of the project. Every DWG in it and in its subfolders is read into an index on your computer. Backup copies kept inside the folder are indexed too, so move them elsewhere if you don't want duplicate hits.

The first pass takes the longest. Later, Refresh Index reads only the drawings that changed, and the folder is reopened the next time you start the program.

2. Search for text or a tag number

Type the keyword and click Search. Each hit shows the file, layout, block, kind and matched text. Searched content includes single-line and multiline text, block attribute values, table cells, multileaders, dimension text, text inside block definitions and block names.

Upper and lower case do not matter, and neither does full-width or half-width typing. An asterisk stands for anything in between: PUMP*101 finds PUMP-101 and PUMP 101. A keyword also matches inside longer values, so FD-204 lists FD-2040 and FD-2041 too: read the matched text. Use the Search in check boxes to limit the kinds. The screen lists up to 500 hits.

3. Find the drawings that use a block

Type the block name and leave only Block names checked. Every placed reference is listed with its drawing and layout, including blocks without attributes. A block nested inside another block is listed together with the block that contains it.

For a result that belongs to a block with attributes, click Attributes to read all its tags and values without opening the drawing, and Copy All to paste them somewhere else.

4. Open the drawing at the hit

Click Locate on a result. The drawing opens in the CADXChange DWG Viewer, on the right layout, with the view moved to the object. If the viewer is not installed, you can install it or use the free online viewer and open the file there.

5. Export the list to Excel

Click Export to Excel to save the results, including hits beyond those shown on screen. Block and attribute hits are listed one row per block with all its attributes; text and multiline text get a sheet of their own.

The sheets use the layouts of BlockSync and TextSync, so you can edit values and write them back with those tools. Table, multileader and dimension hits and text inside block definitions can be searched but are not exported.

Refresh the index before a search that matters, especially after colleagues have saved changes. A search reflects the drawings as they were last indexed.

DwgSearch is free, including the export. Editing drawings with the other Toolkit tools needs a licence after the 30-day trial.

Try it on your own drawings

CADXChange Toolkit does this for a whole folder of drawings, with a preview and a backup first. The 30-day trial has every feature.

Start the free trial →

Before you start — common questions

Can AutoCAD search for text in several drawings at once?
Not with FIND, which works on the open drawing and optionally its xrefs. To search closed files you need a script, an add-on or a separate search tool that reads DWG files.
Do I need AutoCAD to search DWG files?
No. DwgSearch reads the drawings itself, on Windows 10 or 11. AutoCAD does not have to be installed.
Does searching change my drawings?
No. Indexing and searching only read the files. The index is stored on your computer.
Can it search Chinese, Japanese or Korean text?
Yes. Type the characters as the keyword. Differences between full-width and half-width forms are ignored.

Related guides