SolidWorks Tutorial 1c: Design of an Electronic Box, Continued
Link to: CAD Main Page
Link to: Tutorial 1b (prev)
Introduction
This tutorial continues the sequence for designing a sample electronics box to demonstrate how to use SolidWorks.
In the previous tutorials, most of the basic tools have already been addressed. In the steps that follow, knowledge of these tools will be assumed. If you are unfamiliar with any of these tools, you may want to review the previous entries in this sequence.
In the previous tutorials in this sequence, a thin-walled box was designed with mounting lugs attached to the bottom face. The first step in this tutorial is to add some additional lugs around the top of the box that could be used to attach a lid to the box. The operations to do this are mostly the same as those used in the previous tutorial. Accordingly, we will move quickly through this first operation until we need to use some new functions.
Attach Lugs to the Box Edge
Select the flat surface at the top edge of the box, as shown in the figure above. Open a new sketch on that plane. Notice that you can open a sketch on any planar face, no matter how tiny.
Sketch four squares in the four corners of the inside of the box. By snapping the edges of the squares onto the inside edges of the box top, the relations are set automatically that fix them to those edges.
Set the four dimensions as shown below. To fully define these four squares, manually set four "Collinear" relations between the remaining edges. Hopefully is is obvious to you where these should be. See the illustration below.
To check whether the relations are set correctly, change the four dimensions that are explicitly defined in the figure. In the example, the lugs were originally set to 5/8" square. Change them now to 3/8" square, which is more reasonable in the box design. All of the lugs should change to the correct size.
It should also be possible to change the outside dimensions of the box and have the lugs remain attached to the box corners. It is very rare that something like this is designed at its correct size from the first step. That is the strength of "parametric" design. At this stage however it is not possible to check. We need to finish the sketch first and then extrude the lugs into solid features.
Fillet the corners as shown below. You can use the default radius of 0.1 inches.
Exit the sketch. Select "Extruded Boss/Base" and project the sketch into the 3rd dimension. Make sure the lugs sit below the plane of the top of the box.
Make Screw Holes in the Lugs
We assume the box lid will be held on with screws. We need to cut holes in the lugs to accommodate them, and they should be designed parametrically so they move with the features if the dimensions are changed. The screw-holes could have been applied in the previous sketch, but this step is an opportunity to introduce the "Extruded Cut" tool from the "Features" tab.
The first step in cutting screw holes is to open a new sketch on the same plane as the previous sketch. We will set features to locate holes in the centers of two of the lugs in opposite corners. These are line segments that cross the lugs diagonally as shown below.
These segments will be used to locate circles in the sketch. The circles will form the contours of cuts through the solid tabs. Although the diagonal line segments are present in the sketch, we don't want them to affect the contours of the cuts, so they need to be marked "For Construction" in their "Properties" dialog.





