CADXChange

Guides/Drawing standards

Edit Block Attributes in Multiple DWG Files — AutoCAD's Own Methods and Their Limits

Made with BlockSync
BlockSync's diff preview with 28 attribute changes, the MODEL values of one drawing going from TBD to the vendor's model numbers

Short answer: ATTEDIT edits attributes only in the drawing that is open. To reach many drawings with AutoCAD alone, use a sheet set whose title blocks contain fields, run a script over a list of drawings when the value is the same everywhere, or write a LISP or .NET routine when each drawing needs its own value.

Which one fits depends on how many drawings you have, whether the values differ between them, and whether they were set up for automation. This guide goes through each method and then shows the same job as an Excel round trip with BlockSync, part of CADXChange Toolkit.

1. Edit attributes in the current drawing

Double-click a block to change its values in the Enhanced Attribute Editor. The command-line form -ATTEDIT can also edit globally, replacing one text string with another, filtered by block name, attribute tag or value. The filters are case-sensitive.

Everything happens inside one drawing. For a single sheet this is the quickest route.

2. Sheet sets: update many drawings through fields

If the title block attributes contain fields that point at sheet set properties, you change the property in the Sheet Set Manager and Resave All Sheets updates the text in every sheet. Each sheet can have its own number and title.

The catch is the setup. The sheet set must exist and the attributes must be defined with fields, so old projects and drawings received from others are not covered until they are converted.

3. Scripts: run the same commands in every drawing

A script file that runs -ATTEDIT can be applied to a list of drawings with a batch runner such as Autodesk's ScriptPro, a separate download. Every drawing receives the same commands, so this suits one new value everywhere, such as a client name, and not sheet numbers or tags that differ per drawing.

4. ATTOUT and ATTIN: a text file for one drawing

The Express Tools ATTOUT and ATTIN export attribute values to a tab-delimited text file and read the edited file back. You can edit in a spreadsheet, but you repeat the round trip for every drawing. Express Tools are not included in AutoCAD LT.

5. LISP or .NET: write what is missing

A routine of your own can open each drawing, look up the right value and write it, which covers any case. Someone has to write it, test it on real drawings and maintain it.

6. Excel round trip: a different value in every drawing, without code

BlockSync works on the drawings as they are, with no sheet set and no script. Add the drawings, tick the block and click Extract to Excel: one workbook with one row per block across all files.

Edit it like any spreadsheet. Fill a revision down a column, build sheet numbers with a formula or paste a list of new tags. Then switch to Excel → Blocks and review the Diff preview, which lists every change with the old and the new value.

Nothing is written until you confirm. Automatic backup is on by default, changed values are read back after writing, and Rollback All restores the run.

Excel sheet exported by BlockSync with one row per drawing: client, revision, site address and title for six drawings

7. Which one should you use?

One or two drawings: ATTEDIT. A set that already lives in a sheet set with field-based title blocks: change the properties and resave the sheets. One value for many drawings and a script runner you trust: a script. Different values per drawing in files that were never set up for it: the Excel round trip.

BlockSync runs on Windows 10 and 11 without AutoCAD. A value that contains a field is not overwritten; the preview marks it as blocked.

For the title block case with a screenshot of every step, see the guide on batch updating title blocks in multiple drawings.

CADXChange Toolkit comes with a 30-day full trial. Writing to drawings and exporting need a licence after the 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 ATTEDIT edit attributes in several drawings at once?
No. ATTEDIT and -ATTEDIT work on the drawing that is open. For several drawings you need a sheet set with fields, a script run over a list of drawings, or a tool that opens the files for you.
Can each drawing get a different value, such as its own drawing number?
Yes. A sheet set with fields supplies a number and title per sheet, custom code can look values up, and in an Excel round trip every row has its own value.
Do my drawings need to be in a sheet set to use BlockSync?
No. It reads block attributes from ordinary DWG files. Values that contain a field are left unchanged and marked as blocked.
Does it work if I only have AutoCAD LT?
Yes. CADXChange Toolkit does not use AutoCAD to read or write the drawings, so it does not matter which edition you have. Close the drawings before writing to them.

Related guides