Function Entry: ENTDEL
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: ENTDEL
Name
entdel
Class
Host Function
Syntax
(entdel ename)
Arguments and Values
ename: entity name
Description
Deletes or undeletes an entity, according to AutoLISP host semantics.
Return Values
Entity name.
Side Effects
Changes the deletion state of an entity in the drawing database.
Compatibility
Part of the core object-handling family.
Availability
- AutoCAD 2026: documented (per Autodesk reference page).
- BricsCAD V26: presumed compatible (no contradicting page found).
- Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.
Source Notes
Notes
- Autodesk documents toggle behavior within the current editing session: a currently present entity is deleted, and a previously deleted entity is restored.
- Autodesk documents that deleted entities are purged when the drawing is exited.
- Autodesk documents that the function operates only on main entities, not attributes or polyline vertices independently.
- Autodesk documents that entities within a block definition cannot be deleted with
entdel.
clautolisp
entdel is a within-session toggle: the first call flags the entity
deleted (a subsequent entget returns nil; entlast~/~entnext skip
it), a second call restores it. It returns the ENAME either way and
fires the :vlr-objecterased / :vlr-objectunerased reactor events. It
operates on main entities; handent still resolves a session-deleted
handle so the entity can be restored.