It looks like you're new here. If you want to get involved, click one of these buttons!
Is there any reason this script might not work anymore? When I right click on my top cell, click "Replace Cells With Others", and choose the library, the library gets imported as a new top cell. The cells in the original layout have not been replaced. Instead, the library cells with the same name get the $1 as if I just tried to import the library GDS.