Skip to content

Example 110: Automatic Tray Retention

Automatically arrange two trays, check the declared lower region of three ideal 16-mm cubes, and save the selected arrangement for rebuilding. The conditional result covers that synthetic region only.

BGI / EXAMPLE 110Dimensions in mm
Rendered assembled view of Automatic Tray Retention
The assembled insert.

This section shows the settings for trying layouts:

search:
fixed_order:
- blue-markers
allowed_shapes:
- strip

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

---
schema_version: 1
readme: "Automatically arrange two trays, check the declared lower region of three ideal 16-mm cubes, and save the selected arrangement for rebuilding. The conditional result covers that synthetic region only."
project:
id: auto-tray-retention
name: Automatic Tray Retention
box:
inner_mm:
- 90
- 120
- 90
top_reserve_mm: 8
material:
profile: de-mdf-3mm
overrides:
thickness_mm: 3
kerf_mm: 0.16
components:
- id: red-dice
kind: d6
count: 3
cube_mm: 16
measurement_basis: synthetic
allowance_total_mm:
- 0.4
- 0.4
- 0
- id: blue-markers
kind: explicit
clear_min_mm:
- 70
- 103
- 35
orientations:
- xy
- id: aux-markers
kind: explicit
clear_min_mm:
- 70
- 20
- 35
orientations:
- xy
assemblies:
- id: lower-tray
kind: tray
construction: open_grid_box
assembly: glue_allowed
side_clearance_mm:
- 1
- 1
- 1
- 1
members:
- red-dice
- aux-markers
interior:
id: lower-auto
kind: auto
- id: upper-tray
kind: tray
construction: open_grid_box
assembly: glue_allowed
side_clearance_mm:
- 1
- 1
- 1
- 1
members:
- blue-markers
interior:
id: upper-auto
kind: auto
search:
fixed_order:
- blue-markers
allowed_shapes:
- strip
layout:
mode: auto
construction_mode: local_groups
search:
budget: 100
top_k: 10
interior_template:
id: lower-frame
kind: split
axis: y
clear_mm:
- 70
- 103
- 35
first:
id: lower-grid
kind: split
axis: x
clear_mm:
- 70
- 80
- 35
first:
id: die-cell-1
kind: compartment
clear_mm:
- 21
- 80
- 35
contents:
- red-dice-1
second:
id: lower-right
kind: split
axis: x
clear_mm:
- 46
- 80
- 35
first:
id: die-cell-2
kind: compartment
clear_mm:
- 21
- 80
- 35
contents:
- red-dice-2
second:
id: die-cell-3
kind: compartment
clear_mm:
- 22
- 80
- 35
contents:
- red-dice-3
second:
id: aux-area
kind: auto
clear_mm:
- 70
- 20
- 35
requirements:
- aux-markers
search:
fixed_order:
- aux-markers
allowed_shapes:
- strip
vertical_retention:
schema_version: 3
model: rigid-cell-core-v1
intent: require_certificate
states:
- id: transport
kind: closed_transport
cover_ids:
- upper-tray/base
- id: on-table
kind: open_on_table
removed_cover_ids:
- upper-tray/base
cores:
- id: die-core-1
content_id: red-dice-1
piece_index: 1
diameter_min_mm: 16
diameter_uncertainty_mm: 0
basis: model
source: Explicit ideal synthetic cube, not a real rounded or pipped die
body_model: ideal_cube
initial_lower_origin_mm:
- 1
- 1
- 0
initial_rotation_deg:
- 0
- 0
- 0
- id: die-core-2
content_id: red-dice-2
piece_index: 1
diameter_min_mm: 16
diameter_uncertainty_mm: 0
basis: model
source: Explicit ideal synthetic cube, not a real rounded or pipped die
body_model: ideal_cube
initial_lower_origin_mm:
- 1
- 1
- 0
initial_rotation_deg:
- 0
- 0
- 0
- id: die-core-3
content_id: red-dice-3
piece_index: 1
diameter_min_mm: 16
diameter_uncertainty_mm: 0
basis: model
source: Explicit ideal synthetic cube, not a real rounded or pipped die
body_model: ideal_cube
initial_lower_origin_mm:
- 1
- 1
- 0
initial_rotation_deg:
- 0
- 0
- 0
regions:
- id: lower-region
compartments:
- die-cell-1
- die-cell-2
- die-cell-3
closing_level_mm: 38
closing_tolerance_mm: 0
floor_uncertainty_mm: 0
content_height_uncertainty_mm: 0
cover:
kind: constructed_panel
id: upper-tray/base
underside_uncertainty_mm: 0
basis: synthetic
source: Exact synthetic rigid cover material, not a measured physical panel
motion:
schema_version: 1
basis: declared_fixture
source: Explicit exact rigid synthetic fixture between upper base and lower
tray
translation_limit_mm:
- 0
- 0
- 0
rotation_limit_deg:
- 0
- 0
- 0
limits:
content_clearance_min_mm: 0.2
content_lift_max_mm: 20
barrier_safety_margin_mm: 0.1
adaptations: []
certificate_model:
adapter: orthogonal-cell-certificate-v1
basis: exact_synthetic_rigid
source: Exact nominal synthetic material and initial poses, no deformation or
relative movement; not physical measurements
panels:
- id: lower-tray/base
material_uncertainty_mm: 0
shape_uncertainty_mm: 0
thickness_uncertainty_mm: 0
assembly_uncertainty_mm: 0
form_uncertainty_mm: 0
- id: lower-tray/front
material_uncertainty_mm: 0
shape_uncertainty_mm: 0
thickness_uncertainty_mm: 0
assembly_uncertainty_mm: 0
form_uncertainty_mm: 0
- id: lower-tray/back
material_uncertainty_mm: 0
shape_uncertainty_mm: 0
thickness_uncertainty_mm: 0
assembly_uncertainty_mm: 0
form_uncertainty_mm: 0
- id: lower-tray/left
material_uncertainty_mm: 0
shape_uncertainty_mm: 0
thickness_uncertainty_mm: 0
assembly_uncertainty_mm: 0
form_uncertainty_mm: 0
- id: lower-tray/right
material_uncertainty_mm: 0
shape_uncertainty_mm: 0
thickness_uncertainty_mm: 0
assembly_uncertainty_mm: 0
form_uncertainty_mm: 0
- id: lower-tray/divider-lower-grid
material_uncertainty_mm: 0
shape_uncertainty_mm: 0
thickness_uncertainty_mm: 0
assembly_uncertainty_mm: 0
form_uncertainty_mm: 0
- id: lower-tray/divider-lower-right
material_uncertainty_mm: 0
shape_uncertainty_mm: 0
thickness_uncertainty_mm: 0
assembly_uncertainty_mm: 0
form_uncertainty_mm: 0
- id: upper-tray/base
material_uncertainty_mm: 0
shape_uncertainty_mm: 0
thickness_uncertainty_mm: 0
assembly_uncertainty_mm: 0
form_uncertainty_mm: 0
- id: upper-tray/front
material_uncertainty_mm: 0
shape_uncertainty_mm: 0
thickness_uncertainty_mm: 0
assembly_uncertainty_mm: 0
form_uncertainty_mm: 0
- id: upper-tray/back
material_uncertainty_mm: 0
shape_uncertainty_mm: 0
thickness_uncertainty_mm: 0
assembly_uncertainty_mm: 0
form_uncertainty_mm: 0
- id: upper-tray/left
material_uncertainty_mm: 0
shape_uncertainty_mm: 0
thickness_uncertainty_mm: 0
assembly_uncertainty_mm: 0
form_uncertainty_mm: 0
- id: upper-tray/right
material_uncertainty_mm: 0
shape_uncertainty_mm: 0
thickness_uncertainty_mm: 0
assembly_uncertainty_mm: 0
form_uncertainty_mm: 0
- id: lower-tray/divider-lower-frame
material_uncertainty_mm: 0
shape_uncertainty_mm: 0
thickness_uncertainty_mm: 0
assembly_uncertainty_mm: 0
form_uncertainty_mm: 0
bindings:
- assembly_id: lower-tray
anchor: box_floor
translation_limit_mm:
- 0
- 0
- 0
rotation_limit_deg:
- 0
- 0
- 0
source: Explicit synthetic rigid fixture relative to the box floor; actual load
path checked separately
- assembly_id: upper-tray
anchor: box_floor
translation_limit_mm:
- 0
- 0
- 0
rotation_limit_deg:
- 0
- 0
- 0
source: Explicit synthetic rigid fixture relative to the box floor; actual load
path checked separately
fixtures:
- cover_id: upper-tray/base
cell_assembly_id: lower-tray
translation_limit_mm:
- 0
- 0
- 0
rotation_limit_deg:
- 0
- 0
- 0
source: Explicit synthetic rigid fixture of upper base relative to lower tray

Open 110-auto-tray-retention.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.