Hi guys. Im currently working on making a workflow...
# klayout
p
Hi guys. Im currently working on making a workflow with a python macro for klayout, and im facing some issues with setting the layout as the active cell view in klayout. Lets say i have a gds file path or something like this given as gds_file_path = 'some/path' i then set the layout as layout = pya.Layout() layout.read(gds_file_path) how can i then set the layout as the active cell view? not sure if its in the api, but i imagine something like cell_view.layout_set(layout)
a
Try this:
Copy code
import pya

application = pya.Application().instance()
main_window = application.main_window()

main_window.load_layout("path-to-gds-file")
🙌 1