I recently went on a trip, and I needed a travel container. I decided to use this as an opportunity to practice with parameter-driven objects. This is the result.
The entire object's size is driven by the volume of the container. I've attached the original file (designed on Fusion 360), and you can adjust the volume to adjust the size of the container. You can also adjust tolerances to ensure the right fit for your needs. The files I've attached fit snugly, but everybody's machine is different.
And before anybody says anything, yes I know the threading is reversed on the print in the picture. I've corrected the error in the files I've attached, and I'm printing new objects for reference. But that's what prototypes are for, right?