Example 8: Two Local Compartments and an Existing Box
Red and blue markers each get a small separate tray beside an existing card box.
BGI / EXAMPLE 08Dimensions 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-card-box outer_mm: [70, 80, 35] side_clearance_mm: [2, 2, 2, 2] top_clearance_mm: 5Full 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: "Red and blue markers each get a small separate tray beside an existing card box."project: id: two-local-groups name: Two Local Compartments and an Existing Boxbox: inner_mm: [260, 110, 50]material: profile: de-mdf-3mm overrides: thickness_mm: 3 kerf_mm: 0.16components: - id: red-markers kind: explicit clear_min_mm: [50, 50, 20] orientations: [xy] - id: blue-markers kind: explicit clear_min_mm: [50, 50, 20] orientations: [xy]containers: - id: existing-card-box outer_mm: [70, 80, 35] side_clearance_mm: [2, 2, 2, 2] top_clearance_mm: 5assemblies: - id: red-group kind: grid construction: open_grid_box assembly: glue_allowed members: [red-markers] interior: id: red-compartment kind: compartment clear_mm: [70, 80, 35] contents: [red-markers] - id: blue-group kind: grid construction: open_grid_box assembly: glue_allowed members: [blue-markers] interior: id: blue-compartment kind: compartment clear_mm: [70, 80, 35] contents: [blue-markers]layout: mode: manual construction_mode: local_groups placements: - id: red-group origin_mm: [2, 2] rotation_deg: 0 - id: blue-group origin_mm: [84, 2] rotation_deg: 0 - id: existing-card-box origin_mm: [168, 3] rotation_deg: 0Open 08-two-local-groups.bgi.yaml and save a copy if you want to edit it in your own folder. Follow Plan your own layout to validate and build it.