This cup holder can be attached to a bar with a diameter of 28-32 millimeters.
There are 3 models for handle cut-outs.

Cups and mugs up to a diameter of 90mm fit into the holder.
All parts can be printed upright without support.
Other things like bluetooth boxes can also be held.

The holder must be fitted with 4 M4 threaded inserts after printing and can be screwed on with M4x16mm cylinder head screws.

The threaded inserts can be purchased at the following link:
https://www.amazon.com/dp/B07YSV66Y5
The author remixed this model.
The holder has been modified so that the cup holder from Andyprint_3D can be attached to a 30 mm wide bar.
In addition, 3 cup holders are included, which can hold wider cups.