To make drawing in the sketch easier, you can right-click the view cube and click View normal to sketch plane. The 3D view rotates to put you face on to the current sketch plane.

Creating your first part in OnShape
OnShape - Your first part
Creating your first part in OnShape
Prerequisites:
Software:

The goal of this tutorial is to discover the basic features of OnShape by making the part above step by step. Not every feature used is explained exhaustively, so feel free to try some options for yourself.
You should be taken straight to the main page of your part editor. Check that you can navigate properly in the 3D space with your mouse before going on.

The design window is divided into 4 areas:
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. You also have the view cube, which lets you manage your display and its orientation very quickly.

The various parts you create and open appear in the tabs below your window.

You can add elements to the project by clicking the + button to the right of the tabs.
On the right is the display area for the tree of features and parts. It lists all the parts of your project (bottom) and all the features of your current part (top). For readability, you can hide this area by clicking the
button.
At the top of your screen is the toolbar, which gives you access to the features for creating and managing your parts.

This toolbar can be configured under My account (click your account at the top right) > Preferences.


Go to the toolbar and click Sketch
.
Select the Top plane as the sketch plane (double-click the plane in question). The plane you selected should appear in your sketch window:

Go to the toolbar and click Corner 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. Do not click and drag
There are several ways to centre your rectangle on the origin of your part. Read both methods carefully and try them:
Since the square is to be centred on the origin (a point), click two end corners of the square, then last the origin point.

Then click Midpoint in the constraints toolbar
.
The square can also be centred using a double symmetry. Click two opposite corners of the square, then the line separating them:

Then click Symmetric
.
Repeat the operation for two other corners.
Click the Dimension tool
, then select one of the sides of your square. Enter the value 30mm to lock your side at a dimension of 30mm.

If you are happy with your sketch, you can leave it by clicking the Confirm button
. You then leave sketch mode and return to the 3D view. You can go back to a trimetric view by clicking one of the corners of the view cube 
Select the sketch you created earlier

then click Extrude
in the toolbar. In the menu that appears, make sure you select New and Blind, then change the value to 10mm.

Then Confirm
to leave.
Click Sketch
, then double-click the Right plane to set it as the sketch plane. Do not forget that you can right-click the view cube to orient your view (View normal to sketch plane)
With the Dimension tool
, dimension the sketch created earlier as shown. Check that your sketch is fully constrained, then Confirm
to leave.
Click the Revolve tool
, then select the sketch you made earlier as Faces and sketch regions to revolve. Then click Revolve axis
and select the edge of the sketch around which the revolution will be made. Check that the Add tab is active.

Then Confirm
to leave.
Create a sketch in the Top plane and reproduce the sketch opposite using the Center point circle tool
. Constrain the elements as seen earlier, then Confirm
to leave.
Select the new sketch you have just made, then click Extrude
. In the window that appears, select the Remove tab
, then under End type, select Through all
.
If the material is removed in the wrong direction, you can reverse it with the Opposite direction button
. Then Confirm
to leave.


Click the drop-down menu next to Linear pattern and select Circular pattern.

In the Part pattern drop-down menu, select Feature pattern. What we are going to repeat in a circle is the material removal feature made earlier for our hole.

Under Features to pattern, select your previous extrusion (the hole), and under Axis of pattern, select one of the cylindrical surfaces at the centre of the part, made earlier with the revolve tool.

Set the instance count to 6, then Confirm
to leave.

Click the Chamfer tool
, then under Entities to chamfer select the edges you want to chamfer.

Give your chamfers a distance of 3mm, then Confirm
to leave.

You can do the same with the Fillet tool
, selecting the bottom edge of the cylinder.

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:
In this first change, we alter the size of the sketch, then the height of the base.
Double-click your first sketch (that of your base). You go back to sketch editing mode for your base. Change the dimension of the side of your square to 40mm
, then Confirm
to leave.
To change the height of your base, double-click the extrusion of your base in the feature tree and change the height to 5mm, then Confirm
to leave.

Double-click the sketch of the hole to enter edit mode, and change the diameter of the circle to 4mm and its distance from the centre to 16mm, then Confirm
to leave.

Double-click the circular pattern feature, then change the Instance count to 4 instances. Finally, Confirm
to leave.
