A seven compartment pill box with a screw closure. It is parametric in that the length of a side, height of the box, and thickness of the walls can be varied. An additional feature is that the box shape can be either circular or octagonal. The screw closure uses threads.scad by Dan Kirshner available at http://dkprojects.net/openscad-threads/ OpenSCAD code is included.
The closure lasts longer if it is printed with increased infill.