SolidWorks (2) - First part

Your first part

Goal:

The goal of this tutorial is to discover the basic features of SolidWorks by making the part above step by step. Not every feature used is explained exhaustively, so feel free to try some options for yourself.

Creating your project

STEP 1

When SolidWorks starts, on the home page, click Welcome to SolidWorks then Part to create a new design project for a single part.

Alt text

STEP 2

Check that the units are set to MMGS (millimetre, gram, second), then click OK.

Alt text

STEP 3

For this first part, we will mainly use the tools available in the Part environment.

For an assembly of parts, you will use the Assembly environment (not covered by this first tutorial).

Settings

To improve the design experience in SolidWorks, here are a few small settings tips you can apply.

Opening the settings

Open the settings dialog by clicking the Options icon

Alt text

Change the sketch options

In the Sketch options tab, check that the following items are ticked:

  • Auto-rotate view normal to sketch plane
  • Use fully defined sketches

Change the performance options

In the Performance options tab, turn off the High quality options in the transparency section.

A tour of the window

Alt text

General view

The design window is divided into 3 areas:

  • Area 1: 3D/2D view of the part
  • Area 2: Tree of features and parts
  • Area 3: Toolbar

1 - 3D/2D view

Area 1 is dedicated to the 3D and 2D view of your part. In 3D view, you can move around your part and select the elements to work on. To navigate in SolidWorks, you will mainly use your mouse. Given the features to be used, we strongly recommend a 3-button mouse rather than a trackpad.

  • Left click to select
  • Middle (wheel) click to rotate
  • Middle click + CTRL to pan
  • Right click for options

You also have various tools for managing your display and its orientation in the top toolbar.

2 - Tree of features and parts

On the right is the display area for the tree of features and parts, as well as the dialogs of the various tools.

The tree shows all the parts of a project, its features and the elements that make it up.

The blue bar shows where you are in the design history of your part. You can drag the bar if you want to go back in your design. Alt text

3 - Tool ribbon

At the top of your screen is the tool ribbon, which gives you access to the features for creating and managing your parts. It is different for each environment and can be extensively customised to your needs.

Examples of toolbars in the ribbon: Alt text

Alt text

Alt text

Now that we have toured the software, we will create a simple part that lets you put the basics of CAD into practice.

Creating your first part

SolidWorks is parametric design software. Like many others, it works by creating sketches (dimensioned 2D drawings) that are then given volume through operations that add or remove material.

It is the succession of these operations that makes it possible to create complex parts.

STEP 1: create a sketch

Go to the tool ribbon at the top of the window, open the Sketch tab, then click Sketch.

Alt text

We are going to create a sketch on a 2D plane. You therefore have to select the 2D plane you want to work on. Select the top plane as in the picture below:

Alt text

The view should move to look down on the sketch. You can now work in 2D on this plane.

STEP 2: Create a rectangle

Go to the toolbar and click Rectangle.Alt text

Draw a rectangle around the origin point as shown in the picture, clicking once to set the first corner, then a second time to set the second corner. Avoid click and drag

At the moment, your rectangle is not constrained. It is free in its 2D space and can be modified. You can tell from the blue colour of the drawing. The first step is therefore to constrain your sketch geometrically and then dimensionally before moving on.

STEP 3: Centre your rectangle

Use the Line tool Alt text and draw a line joining two corners.

Alt text

Then select the newly created line and the centre of your sketch while holding down the Shift key. In the left pane you will see the properties of the selected elements and also, which is what interests us, an Add Relations section.

Alt text

In this Add Relations section, click Midpoint. Alt text

Your rectangle should now be centred on your origin. To finish your construction, you can tell the software that this line is a construction line and will not be used for the 3D design of your part.

To do so, select the line and click For construction in the options panel on the left Alt text.

Your line should now be displayed dashed.

STEP 4: Make the sides of your rectangle equal

Select two adjacent sides of your rectangle while holding the Shift key, then click Equal in the left panel Alt text

You can check that the relation has been applied by checking that the equality icon Alt text is shown on both sides of your rectangle, which has now become a square!

STEP 5: Dimension the sides of your square

Only one operation remains to fully constrain your square. You are going to define the length of one of the sides. This length is called a dimension from here on.

Click Smart Dimension in the top ribbon Alt text, then select one of the sides of the square. A dimension line then appears.

Alt text

Place it alongside your line, then click to confirm. A pop-up appears for you to enter the value of the length. Enter 30mm and confirm with Alt text

Alt text

  WARNING

Notice how your sketch has gone from blue to black. This means your sketch is fully constrained. It is important to ALWAYS check that your sketches are fully constrained before leaving a sketch and carrying on with your work.

If you do not, you risk ending up in situations where the later generation of your part breaks when you edit an earlier sketch that is not fully constrained.

STEP 6: Confirm and leave the sketch

If you are happy with your sketch, you can leave it by clicking the Exit Sketch button . You then leave sketch mode and return to the 3D view.

STEP 7: Make an extrusion

Select the sketch you created earlierAlt text, then click Extruded Boss/Base Alt text in the toolbar.

In the menu that appears, change the value to 10mm in the Depth field.

Alt text

Then Confirm Alt text to validate the entry.

STEP 8: Create a second sketch

Click Sketch Alt text, then, in the tree on the left, go to the FeatureManager design tree tab and select the Front Plane. We will thus create a sketch on this plane for the rest of the part.

Alt text

STEP 9: Quick outline of your shape

Draw a quick outline of the shape wanted (see illustration) using the Line tool Alt text. When you work on a sketch, the sketch solver automatically suggests Horizontal or Vertical geometric constraints. You can see them appear under your cursor when the conditions are met. It is therefore advisable to take advantage of them. For example, you can start your drawing by clicking the centre of your sketch:

Alt text

If some geometric constraints were not placed while sketching the shape, you can add them manually using the geometric constraints of the left panel:

Alt text

  INFO

When you make a complex sketch, a simple method that works in most cases is to:

  • Draw an unconstrained outline of your sketch
  • Constrain your part geometrically with the constraint tools
  • Finish by dimensioning the sketch
  • Check that your sketch is fully constrained This is the method you followed to make the base of your part, and it is also the method we will use for the second portion of the part.

STEP 10: Dimension the sketch

With the Smart Dimension tool , dimension the sketch created earlier as shown. For the angular dimension, select the two lines of the angle one after the other.

Check that your sketch is fully constrained, then Exit Sketch Alt text to leave.

STEP 11: Revolve

Select the sketch you have just made, then click the Revolved Boss/Base tool Alt text.

Under Axis of Revolution Alt text, select on the sketch the line that will be the centre of your rotation, that is, the one at the centre of your part:

Alt text

Finally, Confirm Alt text to validate the boss.

STEP 12: Sketch of the hole

Create a sketch in the Top Plane as seen earlier

Alt text

Then reproduce the sketch opposite using the Circle tool . Constrain the elements as seen earlier.

Check that your sketch is fully constrained, then Exit Sketch Alt text to leave.

  INFO

If you cannot constrain the position of the circle vertically, you can use a Vertical constraint between the centre of the sketch and the centre of your circle.

Or you can use the same method we used to centre our rectangle at the start of the tutorial, with the construction line tool Alt text

STEP 13: Removing material

Select the new sketch you have just made, then click Extruded Cut Alt text.

In the window that appears, if the material is removed in the wrong direction, you can reverse it with the Reverse Direction button Alt text.

Alt textAlt text

Then under Type, select Through All.

Alt text

Finally, Confirm Alt text to validate the operation.

STEP 14: Circular pattern

Select the last material removal feature made:

Alt text

Then click Circular Pattern:

Alt text

In the window that opens, select the empty field under Direction 1 Alt text, then select the cylinder of your part. This tells the software that you want a circular pattern around this cylinder.

Alt text

In the Instances counter, enter the value 6 Alt text And select Equal spacing

Alt text

Alt text

Finally, Confirm Alt text to validate the operation.

STEP 15: Chamfers and fillets

Select the Chamfer tool in the tool ribbon:

Alt text

Then select the 4 edges of your part as shown below:

Alt text

To see the chamfers better, you can select the Full preview optionAlt text.

Alt text

Give your chamfers a distance of 3mm, then confirm Alt text

Alt text

You can do the same with the Fillet tool Alt text, selecting the bottom edge of the cylinder and a radius of 1mm.

Alt text

Modifying your part

CAD tools are, by nature, parametric. That is, they let you make changes to your parts by going back up your feature tree. You can thus correct or add elements to your part by going back up the tree, without having to start your whole design again.

For example, in our case, we will make several changes:

CHANGE 1: Size of the base

In this first change, we alter the size of the sketch, then the height of the base.

Right-click your first sketch (that of your base) in the tree of your part, on the right. Then Edit Sketch:

Alt text

You go back to sketch editing mode for your base. Change the dimension of the side of your square to 40mm, then Exit Sketch Alt text to leave.

Alt text

To change the height of your base, right-click the extrusion of your base in the feature tree, then Edit Feature.

Alt text

Change the height to 5mm, then confirm.

Alt text

CHANGE 2: Size of the holes

In the same way as before, enter edit mode on the sketch of the holes, and change the diameter of the circle to 4mm and its distance from the centre to 16mm, then confirm.

Alt text

CHANGE 3: Number of holes

Edit the circular pattern feature, then change the instance count to 4 instances. Then confirm.

Need help?