Thank you, Sebastian, for the tip on my specific code issue and also on the documentation and C++.
My mind went to the shape iterator because
bounding_shapes=Pya.Shapes()bounding_shapes.insert(cell_to_change.begin_shapes_rec(bounding_layer))
work…
Is there a way to modify this code for when cell_to_change has nested subcells and you want to update the layer for shapes within all subcells? It seems that begin_shapes_rec should be able to help but I get nothing but syntax errors in spite of rea…
If anyone encounters this themselves, my cumbersome workaround is:
holder=layout.create_cell("flatcell")holder.copy_instances(ParentCell)holder.flatten()flatshapes=holder.shapes(SourceLayer)SourceShapes= flatshapes.dup() #this line seems …