Layer has object that can't be selected (blocks)

So this thread is the inverse of this thread.

If I right-click a layer and choose “select objects”, I get “No objects added to selection”, yet when I try to delete that layer, I get this:

image

(Note that I don’t get the block definition warning from the previous thread due to the following script.)

So apparently there are objects within a block definition that reside on this layer (while the block definition AND instances resides on different layers), but I have 700+ blocks in this file, so how do I find out which block(s) contain the objects?

@eobet - see if this thing helps at all for now … not sure…- it lists (if I did it right) block definitions and any otherwise empty layers that contains their definition objects.

ListEmptyBlockDefinitionLayers.py (1002 Bytes)

To use the Python script use RunPythonScript, or a macro:

_-RunPythonScript "Full path to py file inside double-quotes"

-Pascal

Unfortunately I don’t think that helped.

The script seems to list every block definition in the file, with an empty square bracket behind it. Only one block had any contents in those brackets, and even though I fixed that block (which I don’t think was related to my problem layer), my problem layer still can’t be deleted.

You don’t happen to have a script that lists what objects/definitions/objects within an instance reside on the currently selected layer?