Parametric NEMA rack rails

by ethan, published

Parametric NEMA rack rails by ethan May 5, 2010


This is an OpenSCAD script to generate shapes for NEMA rack rails based on user input. It was created with 3D printing in mind, but should be usable with CNC.

I have a number of small (1U-3U), light-weight rack-mount devices but wanted to be able to mount them in more convenient places than a standard rack. These rails could be fastened to the underside of a shelf (by selecting a top cap and top hole) or as the corners for a table-top enclosure. Longer rails (6U+) might be larger than most 3D printers can presently handle, but could be machined out out bar stock or perhaps well-aligned angle bracket on a CNC.

Liked By

view all


Give a Shout Out

If you print this Thing and display it in public proudly give attribution by printing and displaying this tag. Print Thing Tag


Edit the nema_rails.scad file to select desired size (in NEMA units of 1.75"/44mm), and if you want top caps, bottom caps, mounting holes top or bottom, and if you want left, right, or both rails rendered. Run the customized file through OpenSCAD and save the resulting file. There is a little bit of code to check the rail height against the standard CupCake and Mendel beds to warn you if you are trying to render something that's too large.