A battery holder sized to your drawer - AA, AAA and 18650 side by side
Batteries end up loose in a drawer: AA mixed with AAA, a 9V somewhere underneath, the charged ones among the flat ones. A holder from Printables helps - until it is a few millimetres too big for the drawer, or holds twelve AA when you need thirty AAA as well.
Drawing one in CAD is not hard, just tedious. A tube, a pattern, then counting how many fit the drawer - and starting over when you want another kind of cell in the corner.
The battery holder does the counting: you set the plate to the drawer, split it into sectors, and each fills with as many tubes as fit.
The plate first
Type the drawer's width and depth in millimetres, and the plate is exactly that big. Thickness (1.6 mm by default) is the plate's, and the floor's under every cell.
Plate edge is the least room from the edge to the first wall. Whatever no whole column or row fills is split evenly on both sides, so the cells always sit in the middle. If you would rather have the plate just round the cells, Shrink to the cells trims it.
Sectors run left to right. Want them one behind the other? Swap the width and the depth and turn the print in the drawer.
Sectors: one kind of cell each
Each sector holds one kind of cell: AAA, AA, C, D, 9V, 18650, 21700, CR123A, a CR2032 standing on its edge, or a diameter of your own. A sector takes a set number of columns, or Auto - whatever room is left. Rows are as many as the depth holds, and the count shows on the sector and under the view from above.
The quickest way to share the plate is to drag the line between two sectors in the view from above: one sector gains a column, its neighbour gives one up. With the keyboard, the arrow keys move the line a column at a time.
Each sector has its own height. It starts at about 40 % of the cell - 20 mm for an AA, 18 for an AAA - which holds the cell upright and leaves the rest to grab, and the sector says how far the cell sticks out. A coin cell stands on its edge in a narrow slot, so it starts at 60 %.
The tool opens on a 120 x 120 mm plate with two columns of AAA and AA in the rest: 18 AAA and 35 AA, 53 cells.
Pockets that fit rechargeables
A pocket is the cell's largest size by the standard plus a clearance. An AA is 14.5 mm at most and an AAA 10.5, but rechargeables often run a little fatter, so the clearance starts at 0.8 mm: a 15.3 mm pocket for an AA, 11.3 for an AAA. Printed holes come out a little small - if the cells still stick, add 0.1 mm, if they wobble, take it off.
The pockets run straight up to the rim. A lead-in that opens out at the top would help a cell in, but it thins the wall between two pockets right where the nozzle has least to print, and the slicer leaves gaps in it. Straight pockets keep that wall whole all the way up.
Print a few cells first. One sector of a handful of pockets takes minutes and tells you whether your filament and nozzle want another 0.1 mm.
One wall between pockets, rims rounded
Every cell is a tube of its own and neighbours cross, the way a tube patterned in CAD does: one wall stands between two pockets, the same as round the outside. At the default 0.8 mm that is two lines of a 0.4 mm nozzle. Between four tubes a gap stays open down to the plate, as in a holder drawn by hand.
The top of every wall is rounded over its whole thickness, so nothing is sharp at the rim and the tubes read as separate rings. Rounded rim switches it off for flat tops.
In rows or Staggered: staggered puts every other column half a cell up, and round cells often pack closer - on a 200 mm square, 270 AAA instead of 225. Not always, though: on a 120 mm plate it fits 46 AA instead of 49. The count above the view tells you, so try both.
Handles
Handles adds one on the left and one on the right edge, to lift the holder out of the drawer: a 2 mm wall that bends out at 45° into a tab with a finger hole. It comes from a holder drawn in Fusion 360 and is rebuilt to its numbers. Each reaches 13 mm past the plate, stands 26.4 mm tall and prints without supports.
A handle stands on the plate's edge, its outside flush with the plate's side, which needs a plate edge of at least 2.3 mm: the wall and a little room to the tubes. On a narrower edge it stands beside the plate, and the panel says so. The size above the view counts the handles in.
Download and print
Download 3MF or STL. The solid is built right in your browser - a plate of a few hundred cells in a few seconds, the default one in under half a second - and nothing is uploaded. The 3D view shows it with its weight in PLA: about 71 g for the default plate.
Print it as it lies, no supports. Holders you like go to My holders, kept in this browser.