Message 1 of 4
Insert a block without Duplicate definition of block issue

Not applicable
04-08-2009
11:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
We are inserting a layout template using vba as a block. There will be occasional changes to the template. Now the problem is that if the drawing already contains the old block new insertion is ignored by AutoCAD with message Duplicate definition of block 'XXXX' and igbnored. And the changes that contains are not taking effects. How do I can clear the old block definitions and insert the new block. Since there are a number of blocks are there in the template it is difficult to manually delete each block from VBA.
Is there any system variable is out there by setting it up, AutoCAD will replace the block definitions rather than ignoring the new ones. I don't want to just mute the meaage but like to replace the block definitions.
If perge is the only optiion, how i can purge the block definitions in minimum time using VBA.
Thanks in advance
Regards,
Shijith Edited by: spu on Apr 9, 2009 9:35 AM
We are inserting a layout template using vba as a block. There will be occasional changes to the template. Now the problem is that if the drawing already contains the old block new insertion is ignored by AutoCAD with message Duplicate definition of block 'XXXX' and igbnored. And the changes that contains are not taking effects. How do I can clear the old block definitions and insert the new block. Since there are a number of blocks are there in the template it is difficult to manually delete each block from VBA.
Is there any system variable is out there by setting it up, AutoCAD will replace the block definitions rather than ignoring the new ones. I don't want to just mute the meaage but like to replace the block definitions.
If perge is the only optiion, how i can purge the block definitions in minimum time using VBA.
Thanks in advance
Regards,
Shijith Edited by: spu on Apr 9, 2009 9:35 AM