Parameterized 3D Printing with Python
For a project in my 3D Technology class at the University of Washington I wrote Python code to automatically generate STL files for Lego Technik parts. My code allowed the user to specify the size of part desired and the location of plus-shaped holes. A few examples of STL files are shown below.
The features on these prints where thoroughly tested to ensure proper fit with real Lego parts.
In addition to lego replica parts, I also made parts to interface with NEMA motors. For example, this mount-plate is automatically generated based on a NEMA motor size input. Given the NEMA number, the python code calculates the integer number of of Lego holes required to make a square mount. Mounting holes are automatically added and an the profile of the motor face is recessed into the part.
Snapshots of the Python code are included below, though it may be easier to read if you open these images in a seperate tab..
This project was completed independently with support from Dr. Jeffry Lipton and his teaching team at the Univesity of Washington.