[Search tip detail and code files using keywords, tip number, author name, etc ]
 
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Delete Object by Handle
Tip# 3668 By Raymond Foren On 13-Jun-2011
0
Rated By 0 users Downloaded : 256
Categories : LISP Code Modules, Programming Examples
Software type : AutoCAD 2012
Rename File To : DOH.LSP
Delete entities by their unique tags.

All entities created within a given drawing file in AutoCAD have a unique tag assigned to them, called a handle. DOH is a routine that allows you to delete entities by this handle. Why would you want to do this? Contributor Raymond L. Foren uses this code when he runs into the error, "Warning: Multiply Owned Objects" when saving. You may find other uses for this code, of course. Start by loading the LISP file, then run the command DOH. Enter the handle of an entity and proceed through the prompts. Although this is no more dangerous than the Erase command on the surface, be sure that you are aware of what you are deleting. The DOH command highlights the entity before actually deleting it, but in a crowded drawing, it could be easy to miss.

 

Average Rating:
0


User comments


Log In