"Is it possible to batch change the values of attributes inside a block?"

YES absolutely, it is possible to erase/replace the contents of an "attribute".

There are a couple of ways to do it... apart from using the HAR utility at the Hurricane website (free download), The easiest is to use a lisp routine which I found and have attached.

The lisp attached actually can replace the CHT routine as a "text search and replace" tool, especially because it can scan through blocks and perform search and replace within the text of the block.

This is usefull for people who have titleblocks that contain dates, names, etc, that may have to be updated in large quantities.
This is just a quick note on how to get started using lisp routines called by scripts.  So if you need this functionality, then read-on!

1) Detach the reptext.lsp file attached, into your AutoCAD SUPPORT directory to make it easy for AutoCAD to find it)
2) To use a lisp routine, you must load it into AutoCAD.  The way to do this is to use the "APPLOAD" command,  once it is loaded, then you must run it..    (once it is loaded into your current AutoCAD session, it doesn't have to be loaded again...)
3) NB. (If you want it to automatically load each time you start AutoCAD, (highly recommended) then add the line, including the brackets,)

      (load "reptext.lsp")

     To your acadr14.lsp file found in your SUPPORT directory.

4) To run the file (manually), (after it is loaded), just type REPTEXT at the command prompt... then when you follow the prompts you should see something like this...

Command: REPTEXT
Text to search for: MAY 20, 2001
Replace with: JUNE 1, 2001
Select desired operation.
Process normal text? <Y> : Y
Process dimensions? <N> : N
Process blocks? <N> : Y
Process attributes? <N> : Y
Select objects: ALL
1583 found
1073 were filtered out.
Select objects:
Processing:-
Done
Processing blocks:-
Done
Regenerating drawing.

Fairly straight forward.

So your script to change the date would read something like this...

;----BEGIN
REPTEXT
MAY 20, 2001
JUNE 1, 2001
Y
N
Y
Y
ALL

;EXTRA LINE REQUIRED
;----END

(Just Extract the SCR file into your "...Program files/Hurricane.." directory and it will appear in the Hurricane script list window as REPLACE ATTRIBUTE TEXT.SCR)

And you should be ready to batch change some attributes!
BK

http://www.74mph.com
support@74mph.com