CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
New CADforum look launched.
Over 1.081.000 registered users (EN+CZ). New 1D nesting and 3D nesting tools, updated Color converter. New AutoCAD 2025 commands and variables. Learn about twiGIS.

CAD tip CAD tip # 5351:

Question

CAD 
 %  platform  category 
A
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 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)

You can also uncomment the line with blkredeflayswitch in the LISP code to sort updated blocks in specific layers - just set the pairs blockname-layername.

ACAD
100% *CAD
10.1.2007    42610×  
Prices - CAD eShop:
applies to: AutoCAD ·

See also:


Back    All CAD Tips



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
  



Featuring:
Increase your productivity with our set of BIM add-on functions for Autodesk Revit
CADstudio Revit Tools More info


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