Function Entry: ENTLAST
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: ENTLAST
Name
entlast
Class
Host Function
Syntax
(entlast)
Description
Returns the entity name of the last non-deleted main object in the drawing.
Return Values
ENAME or nil.
Side Effects
None.
Compatibility
Frequently used in create-and-query workflows together with entmake and entget.
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 that the entity need not be visible on screen or on a thawed layer.
- Autodesk documents that
entlastreturns the last nondeleted main entity only; if the last created object has trailing subentities, a loop usingentnextis needed to find the last nondeleted subentity.