PDA

View Full Version : 2020 BLOCKS - REDEFINE



gugg
2019-06-04, 05:55 PM
I understand how to redefine a block by inserting a WBLOCK, but I'd like to update all the currently inserted blocks to match the redefined block.

tedg
2019-06-04, 07:02 PM
I understand how to redefine a block by inserting a WBLOCK, but I'd like to update all the currently inserted blocks to match the redefined block.

A "WBLOCK" is simply a block (drawing) that has been W-BLOCKED (write-blocked) out of a drawing, so you're saying you have a (redefined) block that lives outside your drawing that you want to replace existing blocks in a drawing?
You can simply use the insert the block from outside the drawing and accept "Redefine block".

Or in a script to do many (use your block name and path):


-insert
"blockname=C:\blockname.dwg"
0,0,0

ASM78
2019-07-09, 09:07 PM
You could also try using Design Center. Open two files. One with the old block definition and one with the new. From the file with the old definition open Design Center and select the file with the new block. Find the new block in the block list, right click it and redefine. That should do it.

CCarleton
2019-07-10, 03:11 PM
If you still need to edit the block it's a simple BEDIT command to edit the block in the drawing that will update every instance of the block. Technically could just grab all the linework, text, etc of the new block, BEDIT the old block, and drop it over the old block, nuke the old stuff and save the block out, but if the block is outside the drawing the ADC command that ASM78 noted is the way I've done it in the past.

Tom Beauford
2019-07-10, 04:34 PM
I use the lisp function attached added to the macro below in my Block Reference Object Menu for that.
If I right-click a selected block and pick 'Reinsert Picked Block' it will either show the path and file offering to insert it or if it wasn't found in the support path the open file dialog box is displayed so you can find and select the file yourself.

Name Reinsert Picked Block
Macro ^C^C^P(or C:BlkUpd (load "BlkUpdate.lsp"));BlkUpd
Element ID ID_Reinsert

dervin
2019-07-23, 08:39 PM
"Edit Reference In-Place" tool will allow you to edit a block in a drawing and, when saved, will redefine all instances of that block in that drawing.