I keep trying to figure out why you want to know an XREF layer, name and properties in the CURRENT drawing?
I can think of only a couple of reasons to do this, you are attempting to draw something; that most likely should be going into that XREF file, in the current drawing. Try REFEDIT and then just work in the xref, at that point the object(s) layer will be exposed to you. Or open the XREF in question and work in that file.
Actually I can't think of another reason to 'know' anything about an objects layer properties in an XREF.
What are you really trying to do, as this question seems like an end around to the last one, regarding XREF layers.
Or instead of what are you trying to do, WHY do you want this information, and then WHAT are you doing with it?
I ask; because it could help us give you an alternate that will save even MORE time.
[/quote]
I just shared "XLIST" with about 6 people who all said that they wish they knew that command a long time ago. When you work with files from multiple sources that don't have the best drafting practices, sometimes it just isn't clear what an object is. Sometimes a rectangle is not a rectangle. It's a refrigerator, a storage cabinet, or fume hood.