This is a series of parts to make your own custom battery holder to fit your needs.
I originally designed it to have a solid base, but then I reworked it to have a mesh base to cut down on filament use and print time.
These designs will make a rack that measures 192 mm x 145 mm (7.5" x 5.75")
If you don't want to glue parts together, you can extrude the battery holder up from the current size (5mm height) to a size that will securely hold the batteries (20-30 mm will work great) before slicing the model to print.
To maximize filament and time efficiency, print the base of your choice, as many spacers as you think you will need ( I used 2 D, 1 C, 2AA, 2 AAA, and 2 9V) and then a top to match.
The pre-made assorted battery holder (battery holder mesh base.stl) will hold:
5 C cell
8 CR2032 button cell batteries
The D cell holder (Battery holder D cell only.stl) will hold 20 batteries
the C cell holder (Battery holder C cell only.stl) will hold 35 batteries
added 2 new stl files .. Battery holder C cell only short top, and bottom. Using these files and 5 of the C cell spacers will make a rack that will still hold 35 C cells, but it will take about half of the amount of filament to print.
If you want a single type of battery rack (AA, AAA, D, etc) in this more filament efficient format just leave a comment with what size you need and I will make the STL files