Skip to content

Example 74: Optional Shared Storage

Compare one shared compartment for cards and markers with two separate compartments using a single automatic search.

BGI / EXAMPLE 74Dimensions in mm
Rendered assembled view of Optional Shared Storage
The assembled insert.

This section shows the shared compartment BGI may choose:

optional_groups:
- id: cards-and-markers
layout: row
axis: x
gap_mm: 2
members:
- {requirement: red-cards, orientation: xy}
- {requirement: blue-markers, orientation: xy}

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

schema_version: 1
readme: "Compare one shared compartment for cards and markers with two separate compartments using a single automatic search."
project:
id: optional-shared-storage
name: Optional Shared Storage
box:
inner_mm: [70, 60, 40]
material:
profile: de-mdf-3mm
overrides:
thickness_mm: 3
kerf_mm: 0.16
components:
- id: red-cards
kind: explicit
clear_min_mm: [30, 40, 30]
orientations: [xy]
- id: blue-markers
kind: explicit
clear_min_mm: [20, 30, 25]
orientations: [xy]
assemblies:
- id: grid
kind: grid
construction: open_grid_box
assembly: glue_allowed
members: [red-cards, blue-markers]
interior:
id: shared-compartment
kind: auto
layout:
mode: auto
construction_mode: full_box
search:
budget: 100
top_k: 3
optional_groups:
- id: cards-and-markers
layout: row
axis: x
gap_mm: 2
members:
- {requirement: red-cards, orientation: xy}
- {requirement: blue-markers, orientation: xy}

Open 74-optional-shared-storage.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.