Skip to content

Example 43: Fixed Frame with Automatic Compartments

Keep a full-height card column and divide the remaining area into two independently arranged sections.

BGI / EXAMPLE 43Dimensions in mm
Rendered assembled view of Fixed Frame with Automatic Compartments
The assembled insert.

This section shows the predesigned compartment frame:

interior_template:
id: frame
kind: split
axis: x
clear_mm: [113, 100, 25]
first: {id: card-slot, kind: compartment, clear_mm: [40, 100, 25], contents: [cards]}
second:
id: marker-frame
kind: split
axis: y
clear_mm: [70, 100, 25]

The shaded lines mark that section in the complete YAML. This is the same project file linked below.

schema_version: 1
readme: "Keep a full-height card column and divide the remaining area into two independently arranged sections."
project: {id: hybrid-interior, name: Fixed Frame with Automatic Compartments}
box: {inner_mm: [130, 115, 35]}
material:
profile: de-mdf-3mm
overrides: {thickness_mm: 3, kerf_mm: 0.16, fit_clearance_mm: 0.10}
components:
- {id: cards, kind: explicit, clear_min_mm: [40, 100, 25], orientations: [xy]}
- {id: red, kind: explicit, clear_min_mm: [35, 20, 25], orientations: [xy, yx]}
- {id: blue, kind: explicit, clear_min_mm: [35, 20, 25], orientations: [xy, yx]}
- {id: dice, kind: explicit, clear_min_mm: [30, 20, 25], orientations: [xy, yx]}
- {id: gems, kind: explicit, clear_min_mm: [25, 25, 25], orientations: [xy]}
assemblies:
- id: grid
kind: grid
construction: open_grid_box
assembly: glue_allowed
members: [cards, red, blue, dice, gems]
interior: {id: auto-root, kind: auto}
layout:
mode: auto
construction_mode: full_box
search:
budget: 100
top_k: 3
interior_template:
id: frame
kind: split
axis: x
clear_mm: [113, 100, 25]
first: {id: card-slot, kind: compartment, clear_mm: [40, 100, 25], contents: [cards]}
second:
id: marker-frame
kind: split
axis: y
clear_mm: [70, 100, 25]
first:
id: top-markers
kind: auto
clear_mm: [70, 47, 25]
requirements: [red, blue]
search: {fixed_order: [red, blue], allowed_shapes: [strip]}
second:
id: bottom-markers
kind: auto
clear_mm: [70, 50, 25]
requirements: [dice, gems]
search: {fixed_slots: [{slot: 1, requirement: dice}], allowed_shapes: [strip]}

Open 43-hybrid-interior-template.bgi.yaml and save a copy if you want to edit it in your own folder. This project asks BGI to try layouts. Follow Let BGI suggest layouts to choose a saved result before building.