I would like to make some parts that will fit together. Specifically, I'm making an array of holders for small glass vials, which will stack together vertically to make a kind of extensible spice rack, for a scientific application.
Of course, I could just give each module a flat top and bottom surface and glue them together. However, it would be more convenient (and more fun) to make some kind of connector, so that I can just push the parts together and pull them apart when needed. The connection will need to be relatively sturdy, and they'll need to sit flush against each other with no flexing where they join. I am a novice at 3D printing, so I'm looking for tips on how to design interlocking components, both in general and for this particular case.
These parts will be printed in ABS using the Zortrax M200, and I'm designing them using OpenSCAD. They will almost certainly be printed lying on their side.
One option is that there are several parametric Lego brick clones available, which I could easily incorporate into my OpenSCAD project. My only worries are that this might be overcomplicating the problem, and that printing Lego type parts on their side will result in having to scrape a lot of support material out of the hollow parts. (Though on the plus side, the lego compatibility might actually be useful, in terms of not having to manufacture additional supporting material.)
Any tips would be welcome on how to design and print parts that can be pushed together. I am sure I can work it out myself in time, but any knowledge that will save me a design iteration or two would be very greatly appreciated.