Erase that entity from the drawing.
This function deletes an entity (or entity) specified by entity-name if it exists in the drawing. Use the entnext or entget functions to get the entity's entity-name.
If the entity was deleted from the drawing earlier in the current editing session, the entity is restored. In other words, using entdel twice un-deletes the entity. This works until you exit the drawing. Once the drawing is reloaded, you can no longer use entdel to restore entities deleted in the previous drawing session.
Example
Code | Results |
---|---|
(setq a (entnext)) | |
(entdel a) | Delete entity. |
(entdel a) | Undelete entity. |
NOTES
Tell me about...
(entget entity-name [application-list])
Programming Overview of LISP (LISt Processing) Language
Bricscad™ is commercialized by Bricsys NV. Bricsys NV and Vondle NV are fully owned subsidiaries of Menhirs NV. © 2001- Menhirs NV - All rights reserved. |