@settings(defaultLengthUnit = mm) // Change width to 90 for a wider body and lid. width = 80 depth = 60 height = 24 wall = 2 floor = 2 lidThickness = 2 blank = startSketchOn(XY) |> rectangle(corner = [-width / 2, -depth / 2], width = width, height = depth) |> extrude(length = height) body = startSketchOn(blank, face = END) |> rectangle(corner = [-width / 2 + wall, -depth / 2 + wall], width = width - 2 * wall, height = depth - 2 * wall) |> extrude(length = -(height - floor)) // A separate flat lid shares the body's outer dimensions. lid = startSketchOn(XY) |> rectangle(corner = [-width / 2, -depth / 2], width = width, height = depth) |> extrude(length = lidThickness)