Example 49: Automatic Shared Storage Stack
Two card stacks and two dice form a single vertical group inside a shared compartment.
BGI / EXAMPLE 49Dimensions in mm

What to notice in the project file
Section titled “What to notice in the project file”This section shows how items share one storage space:
groups: - id: shared-stack layout: stack gap_mm: 0 members: - {requirement: cards-1, orientation: flat_xy} - {requirement: cards-2, orientation: flat_xy} - {requirement: dice, orientation: xyz}Full project file
Section titled “Full project file”The shaded lines mark that section in the complete YAML. This is the same project file linked below.
schema_version: 1readme: "Two card stacks and two dice form a single vertical group inside a shared compartment."project: {id: auto-shared-storage-stack, name: Automatic Shared Storage Stack}box: {inner_mm: [70, 90, 40]}material: profile: de-mdf-3mm overrides: {thickness_mm: 3, kerf_mm: 0.16}components: - id: cards kind: cards count: 60 card_outer_mm: [48, 68] split_counts: [30, 30] stack_measurements_mm: [12, 8] allowance_total_mm: [2, 2, 0] orientations: [flat_xy] - id: dice kind: objects count: 2 object_outer_mm: [10, 10, 10] arrangement: [2, 1, 1] object_gap_mm: [0, 0, 0] allowance_total_mm: [0, 0, 0] orientations: [xyz]groups: - id: shared-stack layout: stack gap_mm: 0 members: - {requirement: cards-1, orientation: flat_xy} - {requirement: cards-2, orientation: flat_xy} - {requirement: dice, orientation: xyz}assemblies: - id: grid kind: grid construction: open_grid_box assembly: glue_allowed members: [shared-stack] interior: {id: stack-compartment, kind: auto}layout: mode: auto construction_mode: full_box search: {budget: 10, top_k: 1}Open 49-auto-shared-storage-stack.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.