-
Notifications
You must be signed in to change notification settings - Fork 265
Open
Description
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
Reactions are currently unavailable