How to determine the insertion sequence of entities

How to determine the insertion sequence of entities

Anonymous
Not applicable
302 Views
1 Reply
Message 1 of 2

How to determine the insertion sequence of entities

Anonymous
Not applicable

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.

 

0 Likes
303 Views
1 Reply
Reply (1)
Message 2 of 2

cadffm
Consultant
Consultant
If the application gave you the possibility to explode the Proxyobject you can catch the new(exploded) objects.
If circle and text is inside the same poryobject you have both items in the selectionset "previous".

If they are in two difference proxy you can try to catch all circles and search for the nearest text object.

How looks your try (your code) now?


Sebastian

0 Likes