OnShape - Your first part

Creating your first part in OnShape

OnShape - Your first part

Creating your first part in OnShape

Duration :
Difficulty :

Prerequisites:

Software:

Documentation completed: 100% 100

Goal

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.

Creating your project

STEP 1

At the top left, click the Create button, then Document

STEP 2

Give your document a name, then click OK

STEP 3

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.

A tour of the window

General view

The design window is divided into 4 areas:

  • Area 1: 3D/2D view of the part
  • Area 2: Tabs of the parts and elements of the project
  • Area 3: Tree of features and parts
  • Area 4: 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. You also have the view cube, which lets you manage your display and its orientation very quickly.

2 - Tabs of the parts and elements of the project

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.

3 - Tree of features and parts

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.

4 - Toolbar

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.

Creating your first part

STEP 1: create a sketch

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:

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.

STEP 2: Create a rectangle

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

STEP 3: Centre your rectangle

There are several ways to centre your rectangle on the origin of your part. Read both methods carefully and try them:

Method 1: by midpoint

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 .

Method 2: by symmetry

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.

STEP 4: Make the sides of your rectangle equal

Select two adjacent sides of your square, then click Equal.

STEP 5: Dimension the sides of your square

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.

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

STEP 7: Make an extrusion

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.

STEP 8: Create a second sketch

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)

STEP 9: Quick outline of your shape

Draw a quick outline of the shape wanted (see illustration) using the Line tool

  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 Dimension tool , dimension the sketch created earlier as shown. Check that your sketch is fully constrained, then Confirm to leave.

STEP 11: Revolve

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.

STEP 12: Sketch of the hole

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.

STEP 13: Removing material

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.

STEP 14: Circular pattern

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.

STEP 15: Chamfers and fillets

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.

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.

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.

CHANGE 2: Size of the holes

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.

CHANGE 3: Number of holes

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

Need help?