How to determine the insertion sequence of entities

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I am writing a routine that converts Proxy entities back to Autocad entities and I need to ascertain in what order each item was added to the drawing database. Can this be done?
Reasoning: Two (or more) proxy objects are related, lets say a circle and some text. My requirement is to find the circle and insert a block. The text which is close but not overlapping or intersecting is needed to be an attribute to the block. Then I delete them later. So, is it possible to determine if the text was the next item in the database or can I determine its sequence so maybe there is a correlation?
This probably seems crazy, but I have an absolute motza of these things and the text scatters all over the place. I am desperate to find some form of correlation, so if I am heading in the wrong line, please tell me (and preferably point me in the right direction). I am not sure if handles give me this information in a way I cannot see.
Any help would be appreciated.