CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 2246 

CAD tip CAD tip # 5351:

Question CAD 
 %  platform  category 
Q - question

How to update drawing blocks with an updated version from a DWG file?

A - answer You want to update a block or blocks in a drawing (or in multiple drawings) with a new modified version. You can use the free LISP utility by CAD Studio - BLKREDEF.LSP (see www.cadstudio.cz/download).

First save the edited block to a separate DWG file (using WBLOCK). In the target drawing first load (APPLOAD) the BlkRedef utility and use the BLKREDEF command to update (refresh) the blocks of a given name. The BlkRedef command with the parameter blockname can be used even in scripts to batch update multiple drawings at once (use any batch processor - like ScriptPro or ScrGen).

In your script, use e.g.:

(load "blkredef.lsp")
BlkRedef MYBLOCK1
BlkRedef MYBLOCK2
BlkRedef MYBLOCK3
save
quit
(the myblock1.dwg, myblock2.dwg and myblock3.dwg files must be in the AutoCAD search path)
ACAD
100% *  CAD 
10.1.2007    34233x  
Comments   Tell a friend
applies to: AutoCAD ·

See also:
Tip 11198:Justified attribute text in mirrored blocks (AutoCAD)
Tip 11160:Dynamic display of layer/block/text style/linetype properties.
Tip 10693:List of blocks (incl. nested blocks) used in a DWG drawing.
Tip 10663:Automatic warning on DWG open.
Tip 10574:Four methods for exploding blocks in AutoCAD.


Back   All CAD Tips All CAD tips&tricks

My Revit rendering functions are grayed out. « | » How to assign a fixed mass to an Inventor part?

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   



Featuring:
Increase your productivity with our set of add-on functions for AutoCAD Civil 3D
CADstudio Civil Tools More info


Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist