If they share coordinates what constitutes being on top? Creation order? If so you could sort by objectid's (guess) or normalized handles (padded with leading zeros so all sport the same string length). Also nentselp may be another avenue.
If I misunderstood your requirement forgive me, it's my bed time and I only have three brain cells holding hands.
Edit: Of course there's always the z coordinates, duh.
I don't want to use overkill for this. This lisp will be used on lecagy and new drawings that I do not want to alter in any way.
Here are the steps! I just want to get items that are in those drawings that I need to complete another or to add to me block library.
Step 1:
Identify the lines that are stack on top of each other. This could done by window or input all.
Step 2:
Select all the top layer of lines
Step 3:
Convert the lines to layer 0 and keep the colors of the lines.
Step 4:
Create it into a block.
Step 5:
Pick insertion point.
Step 6:
Purge the block and set the block to 0,0,0
Step 7:
Give the blocks a name like Block 1, Block 2 etc..with the date they were exported to a folder named
(Top Layer Line Blocks)Step 8:The loacation would be
(C:\Documents and Settings\bcrouse\Desktop\Library R & D Blocks\R and D Blocks\Top Layer Line Blocks)Step 9:
End function.
Like I said at the beginning of this thread that this is a bit more complicated for me. I would love it if someone can work with me to get the lisp created.
Thank you,
Brad