Need a wee bit of help....
I am writing a program in VB5 which interfaces with AutoCAD 2000. What
I would like to do is delete a named block from each layout, if the
block exists.
I can confirm that the block exists in the drawin, bu when I try to
delete it, I get an error message saying that the block is being
referenced.
Thanks for your help
Alistair
What you want to delete are the references (which is
what you create with the INSERT command). The block
itself, is what contains the definition (which you
create with the BLOCK command).
To find and remove all references to a block, you
must use a filtered selection set which filters
on the entity type (INSERT) and the block name.
Post a message if you need help with that.
--
Copyright ©2000 Tony Tanzillo all rights reserved
All use of the contents of this article is subject to the
terms and conditions at http://www.caddzone.com/license.htm
Check out DWGInfoTip at http://www.caddzone.com/dwginfo.htm
/*********************************************************/
/* Tony Tanzillo Design Automation Consulting */
/* Programming & Customization for AutoCAD & Compatibles */
/* ----------------------------------------------------- */
/* tony.t...@worldnet.att.net */
/* http://www.caddzone.com */
/*********************************************************/