Redefine block, like Design center & Toolpalettes, from a single source DWG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We have massive numbers of blocks (electrical schematic symbols), divided into a few tool palettes, with a single DWG containing all blocks for a palette. De DWG containing the source blocks was created with Design Center.
Now I can open Design center, browse to the dwg, see all blocks inside it, right click a block and click "Redefine".
I can go to the Tool palette, look up the symbol, right click it and choose "Redefine", too.
...but I can't figure out how to do that from lisp...
-insert blockname=dwgname doesn't work for this , and i'm NOT going to create hundreds of WBLOCKS. Besides being way to much work it would kinda defeat the purpose of the Design Center and tool palettes.
As the design center & tool palettes show, AutoCAD is internally very well capable of doing so, but how to do it from LISP???
So, in short, I have a dwg file, containing a block & I want to update my current drawing with that blocks definition.
The reason for it has to do with updating the blocks. First I need to check the current definition's attributes, as some changes have been made there over the years. Some even contain double tag names, which I need to repair before redefining it with the correct versions. I would like to write a function to check the current drawing (set of layouts full of symbols), repair the old versions & redefine them if needed.
Doing so by hand is a tedious job.