This is a simple panel switch you can print, which uses a standard mechanical endstop (snap-action switch).
To assemble, first put the button piece inside the housing, then use two M2x16mm or similar screws & nuts to mount the limit switch inside the larger housing so that the lever arm of the limit switch is against the back of the push button. Easy!
download the files on: http://www.thingiverse.com/thing:1104383
Every Thursday is #3dthursday here at Adafruit! The DIY 3D printing community has passion and dedication for making solid objects from digital models. Recently, we have noticed electronics projects integrated with 3D printed enclosures, brackets, and sculptures, so each Thursday we celebrate and highlight these bold pioneers!
Have you considered building a 3D project around an Arduino or other microcontroller? How about printing a bracket to mount your Raspberry Pi to the back of your HD monitor? And don’t forget the countless LED projects that are possible when you are modeling your projects in 3D!