I was gifted an abandoned Pc table tote from my family and it was missing the cupholder, and phone holder but haven't made that yet.
So after watching some video reviews of it and seeing how the original cupholder worked I designed it for 3d printing.
Its not perfect because the bottom part needs support but it does seem to work really well.
the Top part has an extra hold through it sideways to hold the peg in it and to support making an even longer peg if I had done so.
Assembly
Store
Take it apart and put into the foam holes for the original cup holder parts in the bottom of the table.
Setup
Put the smaller end of the peg downward through the bottom piece.
Twist the peg so the bottom part is as far from the edge as possible, and then with the cupholder hanging off the table put it into one of the 2 holes on the table.
Twist the peg to tighten up the bottom part against the table so it can't move about too much, Then simply put the top part of the cupholder onto the peg and align it with the bottom piece.
The original table is from PCTableTote.com I emailed them looking for design files for the original cupholder or the ability to buy a replacement but they haven't gotten back to me yet.