def get_path(l1,path=None): if l1.is_top(): print(path) return for p in l1.each_parent_inst(): p_inst = p.inst() aref = "" if(p_inst.is_regular_array()): …
Hi Matthias,
@Matthias My problem is that i need some functionality of Klayout (such as Layout viewer) as standalone module, so that i can integrate it with other modules that i need. One main thing I'm trying to do as view GDS/OASIS file , allow …
@Matthias
Thanks. Is there by any chance we can include sublayer(datatype) also layout.begin_shapes(c, layer). something like this in python instead of DRC
inp = input(13, 0)
outp = polygon_la…
Thanks again @EugeneZelenko . I think this is the way to do it
for c in layout.each_cell(): iter = layout.begin_shapes(c, layer) while not iter.at_end(): if iter.shape().is_polygon(): polygon = iter.shape().polygon.transformed(iter.trans(…
Thanks for the reply @EugeneZelenko and @tagger5896 . But this script is for printing layer and datatype. But my concern is to extract polygons in a specific layer.