How can I find the location of a block reference

Dear all,

I want to remove a layer from the model, however it is blocked by a block reference. The model contains hundreds of block definitions, and I would need an easy way to find out which block contains the nested one so that I can remove it. Is there a way other than stepping through each block definition, open the block manager and see if it contains the unneeded definition?


Hi Cyana - do you want to enter an instance name or select an instance and get a list of layers that are occupied?
See if this gets you what you are looking for -

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

_-RunPythonScript "Full path to py file inside double-quotes" (725 Bytes)

This one, if I did it right, will tell you all the layers ‘occupied’ by an instance, including the instance layer, at the top of the list. (1.4 KB)


Hi Pascal,

thanks a lot for the script! It’s not exactly what I was looking for, however it perfectly helps detecting unexpected layers within block definitions.

Maybe a future block manager can display an inheritance tree of block definitions - this would be very helpful. And - as Xmas is approaching - another wish to NcNeel Santa - something like an object tree like for instance in SimLab Composer.