Glyph

Cells and hierarchy

Cells are how GDS organises geometry. One cell is the top cell (the root of what gets saved); other cells are reusable stamps.

The Glyph Cells panel showing a TOP cell expanded to reveal DEVICE and PAD child cells with instance counts, while the canvas shows the placed instances.

The Cells panel lists every cell with its shape / SRef / ARef counts. Each row's tooltip also shows the cell's content extent and how many flattened instances of it exist across the whole design (AREFs counted as rows × cols); a cell instanced many times shows a small ×N badge — click it to open Find shapes & instances… pre-seeded with ref:<cell> over the whole document, so you can jump straight to every placement. In flat view a header button cycles the sort between name, instance count, and area — handy for finding "which cell is placed 50 000 times" or the largest cells. Breadcrumb at the top of the canvas shows the edit context.

Action How
Add cell + button at the top of the panel
Enter a cell (start editing its contents) Double-click the cell row, or double-click an SRef/ARef in the canvas with the Select tool armed (a shape under the cursor, e.g. text, is edited instead of entering)
Exit a cell (back to parent) Click a breadcrumb crumb above the canvas
Rename Click the pencil icon on the cell row, type, Enter
Duplicate cell Right-click the cell row → "Duplicate cell". Copies its shapes/SRefs/AREFs under a new name (lowest free <name>_N suffix). Shallow duplicate: any SRef/AREF inside the copy still points at the same child cells as the original — matches KLayout's default cell copy, not its ancestry-isolating "Make Cell Variants".
Delete × button on the cell row (the top cell cannot be deleted)
Hide / show cell instances Eye icon on the cell row. While hidden, every SRef/AREF that targets that cell is omitted from the canvas (the cell itself, its shapes, and the row stay — only the instances are muted). Useful for "mute the dummy fill" without changing layers. The hidden flag is per-document, undoable, and is not written to the .gds.
Group selection into a new cell Right-click selection → Group. Selection is replaced by an SRef to the new cell.
Flatten hierarchy Arrange → Flatten hierarchy: inlines every SRef/AREF in the active cell.
Prune unreferenced cells Arrange → Prune unreferenced cells…: deletes every cell unreachable from any top cell (orphaned subtrees and reference cycles left behind by edits) in one undoable step. A second, independently-valid top-level structure — one with no incoming refs of its own — is never touched.

Each cell row also shows a small shapes·refs count next to the cell name so you can scan the hierarchy at a glance.

Cell-model guarantees (what Glyph does differently than the raw GDS spec)

These guarantees mirror KLayout's cell model (refs-by-name, cycle-guarded inserts, cascade-delete) so files written by Glyph load cleanly in other tools.


Updated 2026-08-28

Open Glyph — free, no install Your files never leave your computer.
Open Glyph →