Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

The idea of learning some 3D package had been on my mind for a long time, but there was no need for it. Well, I'll draw some part, and then what? On the one hand it's interesting, but on the other, a host of reasons not to spend time on it immediately appear.

Everything changed when I got a 3D printer: printing parts found on the internet is not very interesting, since there is no creative process, and I'd still like to design the future part myself.

I think the title makes it clear that we'll be drawing in SolidWorks. Before we start, I'd like to add that it seems very complicated until you understand the principles, which take a little less than an hour to learn. By the way, many pictures in the article are clickable, so if something is hard to see, click on the picture.

Open SOLIDWORKS 2015 x64 Edition and create a 3D representation of a single component (a part).
Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

Now an important point: to start drawing, you need to select a plane and create a sketch on it. To do this, right-click the desired plane and select "Sketch", as shown in the screenshot.
Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

Now that we have a sketch, let's draw a rectangle in it.
Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

To finish, click the green check mark.
Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

Now let's set the required dimensions for the sides. To do this, select "Smart Dimension" and use the left mouse button to pick two points between which we want to set the distance.
Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

Let's round the corners. To do this, select "Sketch Fillet" and use the left mouse button to pick the corners we want to round.
Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

The fillet radius of all corners can be changed in one place.
Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.


Copy the drawing by selecting it and pressing ctrl+C. Change the side lengths so that the difference between them is 2.5mm.
Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

Drag the lower drawing by grabbing its center with the left mouse button; you should end up with the following picture.
Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.


The "Extruded Boss/Base" command in the "Features" tab turns our 2D drawing into a 3D body.
Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.


Next we need to create the lid. To do this, create a new sketch in the desired plane.
Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

Now in this sketch we need to draw the outline of the lid and extrude it, as we did before. But there's an easier way: instead of drawing the outline of the lid, you can copy it by holding ctrl and selecting the desired edges with the left mouse button. Then right-click the selected contour and choose "Convert Entities".
Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

As a result of this operation, a contour identical to the one we selected appears in the current sketch, but I'd like to note that using "Convert Entities" creates a relationship between our contour and the original object (the one we selected). Now if we change the dimensions of the original object, the dimensions of our contour will change accordingly.

Extrude the lid, changing the direction if necessary.
Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

Almost done; all that's left is to make a cutout on one of the faces for the microphone. To do this, rotate the part. By the way, you can rotate the part by holding down the mouse wheel and moving the mouse, or by using the toolbar shown in the screenshot.
Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

And you can orient the part with one of its faces toward you using the key combinations ctrl+1, ctrl+2, etc.

To make the cutout, we'll use the straight slot tool.
Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

It's important that the center line is parallel to the lid, which is indicated by the icon marked in the screenshot.
Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

When the cutout outline is drawn, select it and use the "Extruded Cut" tool in the "Features" tab.
Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

Here is the final model.
Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

Next, save our part in .SLDPRT format (the format used by SolidWorks); if you plan to print the part, you also need to save it in .STL format. .STL is a universal 3D model format, but a 3D printer only understands .gcode. The program that converts .STL to .gcode is called a slicer.
Open our .STL file in the slicer (I use Simplify3D) and click the button marked in the screenshot.
Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

In the window that opens, select the print quality (mine is set to High) and check the Include Raft box.
Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

If you keep the current settings, at the end of printing the extruder (the printer's print head) will stop and keep heating our part, which in turn will deform. To make the extruder move away at the end of printing, add the following code in the Scripts->Ending Script tab.
M104 S0 ; turn off extruder
M140 S0 ; turn off bed
G28 X0 ; home X axis 
G0 Y180 ; move model to front
M84 ; disable motors

Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

Save the settings and prepare our model for printing.
Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

We see what the printed model will look like; if everything is fine, save the generated file with the .gcode extension and move on to printing.
Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.


Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

Designing a Phone Case in SolidWorks and Printing It on a 3D Printer.

The last photo shows that because there were no supports, the top bar sagged; no other defects were noticed. I'll write about what this case was needed for in the next article.