For various small Dremel and Proxxon tools, we needed a box to keep it. So this is a gcode-only-example done at the cologne fablab "dingfabrik.de".
One DIN-A4 size 4mm plywood is cutted by the CNC-mill into 4 layers. Use a 3mm tool for drilling and cutting wood.
The 3 bottom layers need to be glued to the basic box.
A 12mm long M3 screw holds the top layer together with the basic box. Slide it to the top to open the box.
For spheric tools, I just drilled a larger fitting into the box, so I needed no further changes at the gcode.