This is a reasonably simple medicine bottle holder with a magnetic lid. Add a pause to the layers to insert magnets (if desired). This is exported as an STL, as I had trouble with the STEP files correctly placing the magnet overhangs.
Use the variable studio in the OnShape project to change the width and height of the bottles and the caps, as well as magnet sizes.
https://cad.onshape.com/documents/b20334524779c8c8ee9902a0/w/f32a84bcf7c94df0728c6352/e/519e5852a77f983d255b2a54
The author marked this model as their own original creation.