Python » GDS import example
GDS import example
import room
with room.from_gds("testdata/sample.gds") as db:
print(db.lib_name, db.cell_names())
for cell in db.cells():
layout = cell.layout()
if layout:
print(cell.name(), "shapes=", len(layout.shapes()), "bbox=", layout.bbox())
db.save("output/sample.room")
# room convert testdata/sample.gds output/sample.room
See GDS import/export and C++ example.html.