Skip to content

Example 125: Automatic Layout Beside a Fixed Double-Wall Tray

Automatically plan an ordinary removable tray beside an existing fixed double-wall card-and-token tray. Inspect the actual unchanged cavity floors, rim and ribs, then rebuild the saved layout without another search.

BGI / EXAMPLE 125Dimensions in mm
Rendered assembled view of Automatic Layout Beside a Fixed Double-Wall Tray
The assembled insert.

This section shows the settings for trying layouts:

search:
budget: 8
top_k: 1
fixed_assembly_origins: [{id: double-tray, origin_mm: [3, 3]}]

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

schema_version: 1
readme: "Automatically plan an ordinary removable tray beside an existing fixed double-wall card-and-token tray. Inspect the actual unchanged cavity floors, rim and ribs, then rebuild the saved layout without another search."
project:
id: auto-fixed-double-wall
name: Automatic Layout Beside a Fixed Double-Wall Tray
box:
inner_mm: [260, 150, 90]
material:
profile: de-mdf-3mm
overrides:
thickness_mm: 3
kerf_mm: 0.16
fit_clearance_mm: 0
components:
- {id: ordinary-item, kind: explicit, clear_min_mm: [24, 24, 20], orientations: [xy]}
- id: red-cards
kind: cards
count: 50
card_outer_mm: [44, 68]
effective_thickness_mm: 0.6
split_counts: [50]
allowance_total_mm: [2, 2, 2]
orientations: [flat_xy]
- id: blue-markers
kind: objects
count: 18
object_outer_mm: [18, 18, 3]
arrangement: [3, 3, 2]
object_gap_mm: [2, 2, 0]
allowance_total_mm: [2, 2, 2]
orientations: [xyz]
assemblies:
- {id: ordinary, kind: tray, construction: open_grid_box, assembly: glue_allowed, members: [ordinary-item], side_clearance_mm: [1, 1, 1, 1], interior: {id: ordinary-auto, kind: auto}}
- id: double-tray
kind: tray
construction: double_wall_tray
assembly: glue_allowed
side_clearance_mm: [1, 1, 1, 1]
members: [red-cards, blue-markers]
double_wall:
schema_version: 1
outer_size_mm: [180, 120, 48]
cavities:
- id: card-cavity
at_mm: [18, 18]
clear_mm: [48, 72, 42]
floor_raise_mm: 0
contents: [red-cards]
- id: token-cavity
at_mm: [96, 18]
clear_mm: [60, 72, 24]
floor_raise_mm: 18
contents: [blue-markers]
layout:
mode: auto
construction_mode: local_groups
search:
budget: 8
top_k: 1
fixed_assembly_origins: [{id: double-tray, origin_mm: [3, 3]}]
manufacturing:
sheets:
- {id: sheet, material_profile: de-mdf-3mm, size_mm: [600, 400], count: 2}
sheet_margin_mm: 5
cut_gap_mm: 3
rotations_deg: [0, 90]
preview:
contents: generic
content_visuals:
blue-markers: rect_token
content_styles:
overrides:
red-cards: {color: "#c65345"}
blue-markers: {color: "#326cba"}
labels:
- id: cards-label
panel: double-tray/rim
contents: [red-cards]
text: Cards
include_count: true
area_mm: [20, 98, 44, 12]
padding_mm: 1
height_mm: 3
visibility: loaded
engraving: true
- id: markers-label
panel: double-tray/rim
contents: [blue-markers]
text: Tokens
include_count: true
area_mm: [98, 98, 56, 12]
padding_mm: 1
height_mm: 3
visibility: loaded
engraving: true

Open 125-auto-fixed-double-wall.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.