Code Generation (MakerBot)

 Main Article: 3D Printing



Code generation is done in ReplicatorG. ReplicatorG converts the STL file into a build plan for Makerbot based on the selected settings. Various changes to the parts orientation, size, and build quality can be adjusted in ReplicatorG.

For a good print a part must be placed in ReplicatorG for code generation. The part must be oriented so the side with the most surface area is on the plate. Other special conditions exist and are mentioned in Part Orientation. ReplicatorG will hollow out the part, build internal support structures, and slice the part into layers based on the "Generate Gcode". After Gcode is generated the part can be exported to the SD card to be built by MakerBot.

Prerequisites
Before a part can be exported as an STL to be printed it must meet the geometric constraints of the MakerBot. See Part Design for information on geometric constraints and common errors.

File Naming limitations
The file name cannot exceed more than 26 characters (not including the file extension). All valid file name characters should be accepted, but may be the problem if the file does not show up on Makerbot when the file is transferred.

STL File


STL is a generic 3D file type and can be produced by most 3D based programs. Instead of having the steps to create the part, a stl file contains only the geometric surface dimensions.

Because a stl file contains only the geometric surface dimensions it is important to save the part as the typical SLDPRT. This enables a user to go back to the Solidworks file and make changes to the parts design if required.

Exporting STL from SolidWorks
 Verify the part meets the geometric constraints of Makerbot. Save Part as typical “SLDPRT” Select “Save As” Choose Destination Change Save As Type to "STL(*.stl)"  Click “Save” 

Steps for Generating Code
 Run Replicator G </li> Open Part</li> Orient Part and Scale </li> Select "Generate Code" </li> Apply Options</li> Hit “OK” on Accelertion Warning </li> After GCode is made select “Build to File for use with SD Card”</li> Select Save location</li> Change "Save As"</li> </ol>

ReplicatorG Installation
Code generation is done in ReplicatorG. It can be downloaded here. Version 0040 is currently recommended. It will also require Python v2.7.5 to run properly. It is available here. ReplicatorG and Python will run on Window, Mac, and Ubuntu.

Part Insertation
Once ReplicatorG is running, parts can be opened from the file menu. Only STL files are usable by ReplicatorG.

Part Orientation
Parts in RelpicatorG must be placed flat on the platform. The side with maximum surface area should be facing the platform. Moving, rotating, and scale are doen to achieve this.

Move
Opened parts can be moved by using the “Move” button on the left. This allows for the part to be moved by use of the buttons on the right side or by clicking and moving the cursor. It is best practice to place the part in the center of base plate (or as close to the center as possible). The “Center” button will typically center the part.

Rotate
Opened parts can be rotated by using the “Rotate” button on the left. This allows for the part to be rotated in 90° increments by use of the buttons on the right side or by clicking and moving the cursor. Clicking and moving the cursor is tricky and not recommended.

If the part is oriented at an angle, lay flat can be selected to place the part securely on the table. Lay flat will automatically lay the part down on the table using the small

Scale
Opened parts can be scaled by using the “Scale” button on the left. Parts will scale relative to current size. If it has been scaled once, the second scale will be based of the new scaled part.

For example: If a 1" part is scaled by .5 the result is a .5" part. If the part is scaled again by .5 the result is a .25" part. If, after the previous scaling, it is required the part be 1/3 the original, it must be scaled up by 2 and then down by .333334.

Supports
Supports are placed strategically throughout parts that have overhangs and arches to prevent the plastic from drooping when plastic layers are being placed. Only supports if absolutely necessary because it increases build time and leaves marks where the supports were attached.

Supports can be added by ????

Rafts
Rafts are used to make removing the part from plate easier and to prevent warping. They also help create smooth bottom finishes. Rafts should not be used if part is circular.

Object infill (%)
This changes the percentage of internal fill in the part. The standard 10% will suffice for most parts and is fairly strong. If extra strength is needed this can be raised. DO NOT EXCEED ??% THIS WILL JAM THE MACHINE.

Layer Height
Layer Height changes the thickness of layers. Decreasing layer height will increase the number of layers and increase build time. It will also result in a more accurate piece. Decreasing layer height can remove build errors such as: jagged arches, sagging arches, and rough fillets. It is recommended that .27mm be used for standard builds and .1mm to .15mm be used for builds that could be problematic. The minimum layer height of MakerBot is .1mm.

Number of Shells:
Changing the number of shells is necessary when a thicker outer wall is needed for post print processing. The default value of 1 fine for most builds. Changing the value will yield the following results

Feedrate (mm/s)
Set feedrate to 70. This will always be the same

Travel Feedrate
Set travel feedrate to 150. This will always be the same

Print Temperature
Set print temperature to 230&deg;C. This will always be the same.