Hi,
I have an attributed block which is inserted into about 100 drawings. I've just made a change to the block, but now I'm wondering if I can update them globally. Thanks.
|
Hi,
I have an attributed block which is inserted into about 100 drawings. I've just made a change to the block, but now I'm wondering if I can update them globally. Thanks.
There isn't a quick way. I use Design Center to redefine new block (see the image). What I do is first open the drawing with updated block and then proceed to open each drawing. Use the Design center and right click on the block you want to update and then select Redefine. Afterward you need to use ATTSYNC to update the attribute.
That's what I was hoping I didn't have to do. Thanks for that.
you could try modifying the above command to your paths and block names to redefine the blocks quicker,(it is part of a larger command, so it hasn't been individually tested) but, it wont help with the attsync.Code:(defun c:bd (setq imagelocation "z:\\Images\\") (command "-insert" (strcat "ANT=" imagelocation "ANT.dwg") *cancel* ) ;_ end of command )
Below is a sample of a script I edit as needed and run (using Scriptpro for multiple drawings) The only problem I had was that I couldn't figure out a way to cancel before an actual copy of the block was inserted, hence the "erase l". I you've renamed the attributes, all bets are off and you might be sol.
zoom
e
attreq
0
-insert
3001brdr-d=I:\3001\dwg\a\borders\3001brdr-D.dwg
@
Erase
l
ATTSYNC
N
3001brdr-d
quicksave