Roy - thank you. For others learning (like me), here is what is going on:
[color=red](draw a polyline)
[/color]Command: (entlast)
<Entity name: 7ef8cf10>
Command: (kg:getlast)
<Entity name: 7ef8cf38>
Command: list
Select objects: 1 found
Select objects:
POLYLINE Layer: "0"
Space: Model space
Handle = [color=red]9A[/color]
Closed
starting width 0.0000
ending width 0.0000
area 15.4793
perimeter 15.9423
VERTEX Layer: "0"
Space: Model space
Handle = 9B
at point, X= 18.0988 Y= 14.1223 Z= 0.0000
starting width 0.0000
ending width 0.0000
VERTEX Layer: "0"
Space: Model space
Handle = 9C
at point, X= 18.0988 Y= 17.4711 Z= 0.0000
starting width 0.0000
ending width 0.0000
VERTEX Layer: "0"
Space: Model space
Handle = 9D
at point, X= 22.7211 Y= 17.4711 Z= 0.0000
starting width 0.0000
ending width 0.0000
VERTEX Layer: "0"
Space: Model space
Handle = 9E
at point, X= 22.7211 Y= 14.1223 Z= 0.0000
starting width 0.0000
ending width 0.0000
END SEQUENCE Layer: "0"
Space: Model space
Handle = [color=red]9F[/color]
Command: (handent "9a")
<Entity name: 7ef8cf10> [color=red];Plain ENTLAST returns last full entity (polyline)[/color]
Command: (handent "9f")
<Entity name: 7ef8cf38> [color=red];KG:ENTLAST returns last subentity (END SEQUENCE)[/color]
[color=red];this avoids my XYZ_AFTER routine from grabbing an end sequence when the intent was to skip to the next full entity[/color]