I made this to run PrusaLink for my printer. I designed it so that the base can be mounted to the outside of my enclosure with two M3 bolts 40mm apart. The Pi mounts to the top part of the case so it can be removed from the base for maintenance.
There is 5mm from PCB to base to allow room between the leads and the heads of the mounting bolts, mine were ~2mm tall. There is 22mm above the PCB. This was plenty of room for a 30x30x10 fan and a small, ~5mm tall heat sink.
There is a test print for the screws to attach the board to the case top. You might need to drill out or change the hole size. You can add negative volume cylinders in PrusaSlicer to make the holes bigger. If you move the case top to [0, 0] XY in the slicer, the XY positions for the mounts are [-21, 24.5], [37, 24.5], [37, -24.5], and [-21, -24.5]. Use 6mm tall cylinders with the required diameter and a Z of 21. Then position the case top and the cylinders for printing.
The author marked this model as their own original creation.