It looks like you're new here. If you want to get involved, click one of these buttons!
I tried this - it does not give any error but also do not draw anything for ss in topcell.each_shape(layer_index_source): a=ss.is_box() aa=ss.polygon resize=10/du aaa=aa.sized(resize) topcell.shapes(layer_source_index).insert(pya.Polygon.new(aaa))
@sheikh_nir Well, this works for me:
ly = pya.CellView.active().layout() topcell = ly.top_cell() # use layer 16/0 layer_index_source = ly.layer(16, 0) for ss in topcell.each_shape(layer_index_source): a = ss.is_box() aa = ss.polygon resize = 10/ly.dbu aaa = aa.sized(resize) ss.polygon = aaa
Please note two things:
Matthias
Comments
I tried this - it does not give any error but also do not draw anything
for ss in topcell.each_shape(layer_index_source):
a=ss.is_box()
aa=ss.polygon
resize=10/du
aaa=aa.sized(resize)
topcell.shapes(layer_source_index).insert(pya.Polygon.new(aaa))
@sheikh_nir Well, this works for me:
Please note two things:
Matthias