OpenSCAD parametric pen case
I broke my favorite pen in my bag, so decided to make individual pen cases for my best pens.
This project create pen case by your description. If you unsure use the customizer in OpenSCAD.
You will need this library for threads to build it https://dkprojects.net/openscad-threads/ . Put it one level up or fix very first "include" derective.
For more details see manual.html ( https://htmlpreview.github.io/?https://github.com/sanja-byelkin/pen_case/blob/main/manual.html ).