Creating an external CSV is no biggie, nor is processing lists of coordinates to said CSV.
Perhaps I'm just not understanding how the desired coordinate pairs correlate to the "last object created."
As you well know, there's a multitude of coordinates that can be extracted from different object (entity) types, be they extracted by AutoLISP DXF code (or even Polar?), or Visual LISP properties.
For example - A line has Startpoint, Endpoint (and perhaps Mid?), whereas a Circle, or Arc has quadrants, and even a center. Simplest of all a Point entity has only the insertion point itself.