Possible bug when reloading files

edited April 2014 in General
When refreshing a file via File->Reload, it fails to select the top level cell as shown cell, if the name of the old top level cell does not exist anymore. Selecting the new top level cell by hand helps.

I run into this a lot, as we use gdsCAD to output gds file, but by default the cell names are made unique by appending a 'random' string.

Maybe the top level selection routing which is done while opening files, could be execute when the old top level cell is not found in the refreshed file?

Comments

  • edited April 2014

    Hi mabi,

    it's quite unusual to have a randomly generated top cell name.

    Here's is script which does a reload plus selects the top cell of the layout:

    mw = RBA::Application::instance.main_window
    
    # reload
    mw.cm_reload
    
    # set the top cell of the current layout as new cell
    view = mw.current_view
    cv_index = view.active_cellview_index
    top = view.cellview(cv_index).layout.top_cell
    view.select_cell(top.cell_index, cv_index)
    

    Matthias

Sign In or Register to comment.