heitzmann / gdstk

Gdstk (GDSII Tool Kit) is a C++/Python library for creation and manipulation of GDSII and OASIS files.
https://heitzmann.github.io/gdstk/
Boost Software License 1.0
324 stars 78 forks source link

Flattening a whole library #217

Closed Rishabhgoyal07 closed 7 months ago

Rishabhgoyal07 commented 7 months ago

@heitzmann - I have a gds of a cell, which is made of many small cells, I am reading this gds in the library, but all the individual cells are being separately stored in the library, I want to use this big cell as one cell but not able to use it, is there any way to flatten the library so that i can use the cell in gdstk.

heitzmann commented 7 months ago

Yes, you can use Cell.flatten() on you main cell.