This is a remix of Steve Medwin's awesome
"Customizable Straight Beam for LEGO Technic" OpenSCAD part first posted on Thingiverse. It is also written in OpenSCAD and is Customizer-compatible. I'm testing the waters bringing it over to prusaprinters.org. Enjoy!
One can make any straight beam by specifying a string of characters. A lower-case "o" is a circular hole, a "+" is a plus hole. Capital "O" is a sideways hole, and "P" is a sideways plus. An "x" is a blank space with no holes.
For example, the string "+ooo+" creates a block with five holes: pluses at the ends and three round holes in the middle.
I have included several STLs generated with various strings. I recommend you download the .scad file, open it in OpenSCAD, and create the exact custom part you need. (Note: You can turn on the "Customizer" function inside OpenSCAD in the View menu.)
The author hasn't provided the model origin yet.