Skip to content

Library reloading problems #2305

@martinjankoehler

Description

@martinjankoehler

@klayoutmatthias

With the library manager plugin we encounter problems with the File → Reload Cell Libraries menu action:
iic-jku/klayout-library-manager#41

Basically the issue is after a PCell is added into a library cell,
updating the outer top layout instantiating the libcell fails.

The main code was:

lib = pya.Library.library_by_name(lib_def.lib_name)
lib.layout().clear()
lib.layout().read(lib_def.lib_path)
lib.refresh()

I also tried this:

lib = pya.Library.library_by_name(LIB_NAME)
tmp = pya.Layout()
tmp.read(str(LIB_PATH))
lib.layout().assign(tmp)
lib.refresh()

I've attached a python macro that reproduces the issue:
library_reloading_issue1.py

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions