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...