Parametric NEMA rack rails

by ethan, published

Parametric NEMA rack rails by ethan May 5, 2010
0 Share
Download All Files

Thing Apps Enabled

Order This Printed View All Apps



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

Thing Statistics

2347Views 1574Downloads


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.


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.

All Apps

Auto-magically prepare your 3D models for 3D printing. A cloud based 3D models Preparing and Healing solution for 3D Printing, MakePrintable provides features for model repairing, wall thickness...

App Info Launch App

Kiri:Moto is an integrated cloud-based slicer and tool-path generator for 3D Printing, CAM / CNC and Laser cutting. *** 3D printing mode provides model slicing and GCode output using built-in...

App Info Launch App
KiriMoto Thing App

With 3D Slash, you can edit 3d models like a stonecutter. A unique interface: as fun as a building game! The perfect tool for non-designers and children to create in 3D.

App Info Launch App

Print through a distributed network of 3D printing enthusiasts from across the US, at a fraction of the cost of the competitors. We want to change the world for the better through technology, an...

App Info Launch App

Quickly Scale, Mirror or Cut your 3D Models

App Info Launch App

3D Print a wide range of designs with Treatstock. Easy to use tools to get the perfect result. The global 3D printing network that connects you with high-quality and fast working print services nea...

App Info Launch App

When I try to load this openSCAD file, I get an error when trying to render
ERROR: Parser error in line 21: syntax error
ERROR: Compilation failed!
Line 21:

any help with this?

Looks like the keyword "include" is missing from the front of the line. No idea how that could have fallen out - it will never work with that missing.

Add 'include' to the front of line 21 and give it a go.

Thanks for the report!

Can you help at all with putting some holes in to sides of the bracket? 2 holes , 1 on each should would be awesome!

EDIT: im using the 3U bracket with no top and bottom

sweet that worked! it renders correctly now.