klayout icon indicating copy to clipboard operation
klayout copied to clipboard

Single PCell file cannot be read

Open klayoutmatthias opened this issue 1 year ago • 0 comments

The following file is a single PCell instance:

https://github.com/IHP-GmbH/IHP-Open-DesignLib/blob/main/ElemRV/design_data/src/macros/sealring/sealring_2015x2014.gds.gz

Formally this is not legal as a PCell only exists through an instance. However it appears to be possible to save a PCell variant and receive such a file. This file behaves weirdly. It does not show any layout and when trying to add a new cell, KLayout complains that no layout is opened.

The expected behavior is that in such a case, the cell is loaded and converted to a static cell.

In addition, saving a PCell variant to a file should give a warning at least and if intended, the cell should be saved without context to make it a static cell.

The workaround is to save the cell without context (use "Save As" and disable context in the writer options) or to convert it to a static cell before saving.

klayoutmatthias avatar Aug 27 '24 18:08 klayoutmatthias