# Box with Fitted Lid

Arguably, the simplest project of all is one where all features are cut out from a single piece of stock. The earliest wooden boxes were made thus, characterized as a dug out chest, usually with a single compartment. The development of the electric router brought such designs back into vogue.

As with all projects, we begin by defining the parameters of the design and its display:

![Fitted Pencil Box Parameters](/files/-Mb-NqcpcIvrhZHX8T4e)

Then a module for cutting the desired shapes:

![Fitted Pencil Box module for cutting pockets at specified depth and location](/files/-Mb-Q05UUSgSQ3IoTePn)

Then modules for cutting each part:

![Fitted Pencil Box top module](/files/-Mb-Rd9BLKosAmQ4FhS8)

![Fitted Pencil Box bottom module setup](/files/-Mb3S_AdaVU3lwpdm264)

![Fitted Pencil Box bottom module loop](/files/-Mb3SmPTu_RhCS1kWICM)

Creating a file for cutting is simply a matter of capturing each elevation of features:

![](/files/-Mb3Tg3xqWbycxlv3CoD)

Available at:

{% embed url="<https://www.blockscad3d.com/community/projects/1213467>" %}

The project can then be exported to OpenSCAD code and modified to use the customizer:

`Width = 8.25;` \
`Depth = 2.625;` \
`Height = 0.625;` \
`Units = 25.4; // [1:Millimeters, 25.4:Inches]` \
`Number_of_Rows = 2;` \
`Number_of_Columns = 3;` \
`Large_Compartment = "Depth-wise"; // [Width-wise, Depth-wise, None]` \
`Corner_Radius = 0.25;` \
`Lid_Proportion = 40;` \
`Stock_Thickness = 0.5625;` \
`Endmill_Diameter = 0.125;` \
`my_3D_Preview = false;` \
`$fn=80;`

![Fitted Pencil Box in OpenSCAD with customization](/files/-Mb3crr3JEiK1oQxKW-D)

Add the command:

`projection()`

to get a flattened view which may be exported to a DXF or SVG and then imported into Carbide Create:

![Fitted Pencil Box in OpenSCAD projection](/files/-Mb3xFrBf6UrtrHYScE7)

Once imported into Carbide Create it is simply a matter of assigning toolpaths:

![Fitted Pencil Box in Carbide Create](/files/-Mb45QLUOo_uDR30X2Po)

Files are available at: <https://community.carbide3d.com/t/fitted-box-design-generator-underway/13437/29>

### One or more variations

The problem with the generator, is that even the most minor change requires re-creating the toolpaths.

One thing which is persistent as regards toolpaths, but which is easily changed is text, so if one had a box design which had for its dividers a character from a single font, one could change the number of dividers as simply as re-typing a number, and still have the product ready to run.

First step is to make a font which has dividers for numbers, so:

![Design into 3D font for round box dividers](/files/-Mb4OX_JtMngkvEt8UnP)

This font is available at: <https://community.carbide3d.com/t/fitted-box-design-generator-underway/13437/30>

It works when placed in the Carbide 3D font directory (Help | About | Open Data Directory).

Once installed, load the Carbide Create file, select the center divider, then choose the font tool and replace the number with the number of dividers you want:

![Fitted round box with variable dividers](/files/-Mb4RAT1tqsNojTDzJfu)

![Fitted round box with 2 or 7 dividers](/files/-Mb4RJosZ18H7qAIayq0)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://willadams.gitbook.io/design-into-3d/pencil-box-with-fitted-lid.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
