Mainly it is the xref one. I was thinking it would be nice, since it can't be done in lisp, is to be able to set the layer filters to all xrefs, and then hit the toggle button so that it is reversed, so xref layers won't show, and then hit the toggle so that it show in the drop down list the same. I will see if I can get this to work today with your code, as I see that in the test drawing you had it had no xrefs, so maybe the same method will work. I only have a half day today, and then I will be out the rest of the week.
Thanks Kerry.
Edit: Looks like it will grab the xref (default once an xref is inserted). If one wanted to dig down more, then one would have to write more code, as it stops at the top level, but this is the starting point I was looking for. Thanks again Kerry. Will post what I find.
Edit2: I don't see a way to do this.