hide all cells

Like in the Layers window "Hide All", how can I hide all cells in the Cells window.

Comments

  • Hi vanwal,

    You can right click on cell list and select flat cell list
    then select every cell and hide them

    another method is to use macro, this binds a Hide All cells short cut in tools menu if you enable this to be run at start up.

    import pya
    
    mainWindow = pya.Application.instance().main_window()
    
    def hide_all_cell():
        layoutView = mainWindow.current_view() 
        if layoutView:
            cellView = layoutView.active_cellview()
            layout   = cellView.layout()
    
            for c in layout.each_cell():
                cellView.hide_cell(c)
    
    def bindMenu():
        menu      = pya.Application.instance().main_window().menu()
        act       = pya.Action()
        act.title = "Hide All cells"
        menu.insert_item("tools_menu.end", "Hide All cells", act)
        act.on_triggered(lambda : hide_all_cell())
    
    bindMenu()
    
Sign In or Register to comment.