It looks like you're new here. If you want to get involved, click one of these buttons!
Is there a way to import GDS into a pcell and add more shapes to it based on pcells parameters?
@JinWallner Basically it is, yes.
A PCell usually lives in a library. A library contains static and PCells. Library PCells can reference cells from the library they live in (cross referencing is also possible, but I'd try to keep everything in one place).
So you can create a PCell that places an instance to your static cell which you loaded into the library in the library constructor. Then you can add new shapes in addition to this instance which effectively adds them to the resulting cell layout.
Hi @Matthias @JinWallner
Here is a way to do this:
# Load the geometries into KLayout
dir_path = os.path.normpath(os.path.join(os.path.dirname(os.path.realpath(__file__)), "../../gds/"))
filename = os.path.join(dir_path, 'cellname.gds')
tech_name = 'xxx'
top_cell = ly2.top_cell()