I 3D scanned my drill with an aircraft-length bit installed. In CAD I set an axis thru the center of the bit and put a plane normal to the axis at the back and extruded back to the outer surface of the drill. Adhered a bubble level to the back, now my drill tells me when it's level within 0.6°.
Mini-project for something else I'm still working on.
3D scan of the drill
Same model, different view
Finished adapter piece