LISP for redefining blocks insertion point in multiple DWG files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am working with old AutoCAD files that contain older blocks, which have since been modified to have different insertion points. These blocks are included in a new Dynamic block which needs the modified blocks new insertion point. I have gone through (1) drawing (DWG) and used Lee Mac Programming's "Change Block Base Point" (Excellent program!) to redefine the insertion points of multiple blocks that have already been inserted.
The problem I have is, I need this done on many different drawing (DWG) files. With some of the blocks being oddly shaped and needing a specific insertion points, it would be hard to get the exact insertion point in every drawing. It would be nice to update the blocks in (1) drawing and then automatically redefine the blocks in all the other drawings without moving the block location.
Example:
Say I have a block called 'A' in drawing '1' and this block is also in a dynamic block called 'DynamicA'. Now say drawing '2' has block 'A' already inserted, but it has a different insertion point and I need to add 'DynamicA' to this drawing. Without updating the insertion point of 'A' and inserting 'DynamicA', 'DynamicA' would now be incorrect.
Is it possible to write a LISP that would move the insertion points within the blocks of multiple drawings without moving the actual block? Fixing the insertion points in a couple drawings isn't bad, but I have quite a few drawings that need the insertion points moved, plus it would be hard to remember each blocks insertion point when some are in odd locations.
I hope this makes sense!