Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
# Openbuilds Parts
Created parametric models of some Openbuilds parts using OpenSCAD. These were created by taking measurements off the [GrabCAD collection](https://grabcad.com/openbuilds-1) models that Openbuilds has posted.
## V-Slot Linear Rail
The file "vSlots.scad" creates an OpenSCAD function named "vslot" that can be used to generate models of Openbuilds V-Slot linear rail. The function "vslot" take two parameters "length" and "type". The length is the desired length of rail to be modeled (in mm). The "type" parameter accepts: 2020, 2040, 2060, 2080, 4040, and "cbeam", which models the following types of rail:
[20x20 mm V-slot linear rail](https://openbuildspartstore.com/v-slot-20x20-linear-rail/)
[20x40 mm V-slot linear rail](https://openbuildspartstore.com/v-slot-20x40-linear-rail/)
[20x60 mm V-slot linear rail](https://openbuildspartstore.com/v-slot-20x60-linear-rail/)
[20x80 mm V-slot linear rail](https://openbuildspartstore.com/v-slot-20x80-linear-rail/)
[40x40 mm V-slot linear rail](https://openbuildspartstore.com/v-slot-40x40-linear-rail/)
[C-Beam linear rail](https://openbuildspartstore.com/c-beam-linear-rail/)
If file "vSlots.scad" is saved in the same working directory used for modeling, the following example code:
```
include <vSlots.scad>
color("lightgray"){
vslot(length=50, type=4040);
translate([70,0,0]) vslot(length=60,type=2020);
translate([140,0,0]) rotate([0,0,90]) vslot(length=70,type=2040);
translate([190,0,0]) rotate([0,0,90]) vslot(length=80,type=2060);
translate([120,100,0]) vslot(length=100,type=2080);
translate([80,120,0]) rotate([0,0,180]) vslot(length=90,type="cbeam");
}
```
Results in the model illustrated in the image below.

## Stepper Motors
The file "motors.scad" creates two OpenSCAD functions named "nema17" and "nema23" that can be used to generate models of the three types of Openbuilds stepper motors:
[NEMA 17](https://openbuildspartstore.com/nema-17-stepper-motor/)
[NEMA 23](https://openbuildspartstore.com/nema-23-stepper-motor/)
[NEMA 23 - high torque](https://openbuildspartstore.com/nema-23-stepper-motor-high-torque-series/)
When the "nema23" function is called without arguments, or called as "nema23(type="lt")", it produces the model of the standard NEMA 23 motor. Calling the function as "nema23(type="ht") produces the model of the high torque version.
If the file "motors.scad" is saved in the same working directory used for modeling, the following example code:
```
include <motors.scad>
translate([210,0,0]) rotate([90,0,0]) nema17();
translate([100,0,0]) rotate([90,0,0]) nema23();
translate([0,30,0]) rotate([90,0,0]) nema23(type="ht");
```
Results in the model illustrated in the image below.

## Spacers
The "spacers.scad" file provides OpenSCAD functions "spacerAl" and spacerNylon" that model these two parts:
[Aluminum spacers](https://openbuildspartstore.com/aluminum-spacers-10-pack/)
[Nylon spacers](https://openbuildspartstore.com/nylon-spacers-10-pack/)
Both of these functions accept a "length" argument for spacer length in mm. For example: spacerAl(length=40); will produce a 40 mm aluminum spacer.
## Plates
The "plates.scad" file provides OpenSCAD functions "buildPlate", "cBeamEndMount", "vslotGantry20_80", "cBeamGantry" that model the following parts:
[C-Beam End Mount](https://openbuildspartstore.com/c-beam-end-mount/)
[Build Plate](https://openbuildspartstore.com/build-plate/)
[V-Slot Gantry Plate - Universal (20-80 mm)](https://openbuildspartstore.com/v-slot-gantry-plate-universal/)
[C-Beam Gantry Plate](https://openbuildspartstore.com/c-beam-gantry-plate/)
## Connectors
The "connectors.scad" file provides OpenSCAD functions "join90deg", "cornerBracket", "lockCollar8mm", and "angleCorner" that model the following parts:
[90 Degree Joining Plate](https://openbuildspartstore.com/90-degree-joining-plate/)
[Cast Corner Bracket](https://openbuildspartstore.com/cast-corner-bracket/)
[Lock Collar (8 mm)](https://openbuildspartstore.com/lock-collar/)
[Black Angle Corner Connector](https://openbuildspartstore.com/black-angle-corner-connector/)
## Other Parts
The following models are also provided:
antiBacklashNut.scad --> [Anti-Backlash Nut for Acme 8mm Screw](https://openbuildspartstore.com/anti-backlash-nut-block-for-8mm-metric-acme-lead-screw/)

spindleMount.scad --> [Router Spindle Mount](https://openbuildspartstore.com/router-spindle-mount/)

vWheel.scad --> [Solid V Wheel Kit](https://openbuildspartstore.com/solid-v-wheel-kit/)

## Example of using functions to build a machine model
The file "cBeamMachine.scad" is an example of combining the functions to build a machine. It provides a rough model of the [C-beam machine](https://openbuildspartstore.com/openbuilds-c-beam-machine/). An image of this model is shown below.

17abbf718This file is pinned to the selected release. Download the original to open it in your design tool.