These are designed to attach to the wood beams of the loft bed I built my kid. The clips fit onto a 1.5 inch / 38mm width wood beam and the cupholder/bookholder slides into the clip(s). Feel free to edit the stl and widen to your needs.
The book holder dimensions
cupholder
I don't think the layer height matters much. I used a .4mm nozzle with the .20 mm standard default Bambu studio profile.