I used a wooden one as a template, which I made a few decades ago as part of a training course at the Institute for Teacher Training
… I thought it might be something for the 3D printing community.
Video:
https://www.youtube.com/watch?v=7vd5C4aaPB4
Dimensions:
L 230 mm
W 70 mm
H 55 mm
Files to print:
Pencil case_bottom.stl
Pencil case_cover.stl
Pencil case_top.stl
Print Settings:
Printer brand: Prusa
Printer: MK3S
Supports: No
Resolution: 0,2
Infill: 15%
Filament brand: Prusa; Geetech
Filament color: Galaxy Black; Silky SIlver
Filament material: PLA
Remark: As all parts are designed to fit very precisely, it may happen that you have to rework one or the other part a bit with sandpaper and/or cutter due to different dimensional accuracy of the printers and the different behavior of the filaments.