Example 39: Multiple Automatic Grids
Arrange separate card and token trays around a fixed dice tray and an existing box.
BGI / EXAMPLE 39Dimensions in mm

What to notice in the project file
Section titled “What to notice in the project file”This section shows how the design combines storage areas:
containers: - id: existing-box outer_mm: [24, 20, 25] side_clearance_mm: [2, 2, 2, 2] top_clearance_mm: 2 rotations_deg: [0, 90]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: "Arrange separate card and token trays around a fixed dice tray and an existing box."project: id: multiple-auto-grids name: Multiple Automatic Gridsbox: inner_mm: [160, 100, 35]material: profile: de-mdf-3mm overrides: thickness_mm: 3 kerf_mm: 0.16 fit_clearance_mm: 0.10components: - id: cards instances: [red-cards, blue-cards] kind: explicit clear_min_mm: [40, 30, 25] orientations: [xy] - id: tokens instances: [red-tokens, blue-tokens] kind: explicit clear_min_mm: [20, 30, 25] orientations: [xy, yx] - id: dice kind: explicit clear_min_mm: [20, 20, 25] orientations: [xy]containers: - id: existing-box outer_mm: [24, 20, 25] side_clearance_mm: [2, 2, 2, 2] top_clearance_mm: 2 rotations_deg: [0, 90]assemblies: - id: card-grid kind: grid construction: open_grid_box assembly: glue_allowed members: [red-cards, blue-cards] interior: {id: card-interior, kind: auto} - id: token-grid kind: grid construction: open_grid_box assembly: glue_allowed members: [red-tokens, blue-tokens] interior: {id: token-interior, kind: auto} search: fixed_order: [blue-tokens, red-tokens] fixed_slots: - {slot: 1, requirement: blue-tokens} allowed_shapes: [strip] - id: dice-grid kind: grid construction: open_grid_box assembly: glue_allowed members: [dice] interior: id: dice-interior kind: compartment clear_mm: [20, 20, 25] contents: [dice]layout: mode: auto construction_mode: local_groups search: budget: 200 top_k: 3 fixed_assembly_origins: - {id: dice-grid, origin_mm: [120, 60]}Open 39-multiple-auto-grids.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.