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.
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.

STEP 2
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
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
A tour of the window

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.

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:



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.

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:

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.
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
STEP 3: Centre your rectangle
Use the Line tool
and draw a line joining two corners.

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.

In this Add Relations section, click Midpoint. 
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
.
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 
You can check that the relation has been applied by checking that the equality icon
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
, then select one of the sides of the square. A dimension line then appears.

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 

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 earlier
, then click Extruded Boss/Base
in the toolbar.
In the menu that appears, change the value to 10mm in the Depth field.

Then Confirm
to validate the entry.
STEP 8: Create a second sketch
Click Sketch
, 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.

STEP 9: Quick outline of your shape
Draw a quick outline of the shape wanted (see illustration) using the Line tool
.
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:

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

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
to leave.
STEP 11: Revolve
Select the sketch you have just made, then click the Revolved Boss/Base tool
.
Under Axis of Revolution
, select on the sketch the line that will be the centre of your rotation, that is, the one at the centre of your part:

Finally, Confirm
to validate the boss.
STEP 12: Sketch of the hole
Create a sketch in the Top Plane
as seen earlier

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
to leave.
STEP 13: Removing material
Select the new sketch you have just made, then click Extruded Cut
.
In the window that appears, if the material is removed in the wrong direction, you can reverse it with the Reverse Direction button
.


Then under Type, select Through All.

Finally, Confirm
to validate the operation.
STEP 14: Circular pattern
Select the last material removal feature made:

Then click Circular Pattern:

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

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


Finally, Confirm
to validate the operation.
STEP 15: Chamfers and fillets
Select the Chamfer tool in the tool ribbon:

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

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

Give your chamfers a distance of 3mm, then confirm 

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

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:

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

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

Change the height to 5mm, then confirm.

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.



between the centre of the sketch and the centre of your circle.