Design Lab Guide

Three projects in Onshape, from a first sketch to a printable enclosure.

Before you start

Set up

  1. Ask in room 3106 which account to use for Onshape (the free Education plan).
  2. Go to onshape.com and sign in.
  3. Click Create, then Document. Name it with your name and the project, for example “D1 First Part - Sam”.
  4. Use millimeters. If your document shows inches, change it: click your name (top right), then My account, then Preferences, and set the length unit to millimeters.
  5. Save your work often. Onshape saves automatically, but check that the document name appears in your list of documents.

Five tools you will use

Moving around

Use the cube in the top right corner to look at your part from the front, top, side or any corner. Click a face of the cube to snap to that view. Scroll to zoom. A mouse makes this easier than the trackpad.

Good practice

Terms


D1 First Part

Goal

Make your first 3D part: a small block with a hole through it, with exact sizes. By the end you will have a part you could 3D print.

What you need

A Chrome browser and your Onshape account (see the Design page). Time: about 30 to 40 minutes.

Steps

1. Make a document

Sign in to Onshape. Click Create, then Document. Name it “D1 First Part - (your name)”.

Checkpoint: you see a blank workspace with three planes (Top, Front, Right) and a feature list on the left.

2. Start a sketch

Click the Top plane in the feature list. Then click the Sketch button in the toolbar (a square with a pencil). The view turns to look straight down at the plane.

Checkpoint: the toolbar now shows sketch tools like Line, Corner rectangle and Circle.

3. Draw a rectangle

Click Corner rectangle. Click once near the center point (the origin) and click again up and to the right to finish the rectangle.

Checkpoint: you see a rectangle that is not yet sized.

4. Set exact sizes

Click the Dimension tool. Click the bottom edge of the rectangle, move the mouse away, click, and type 40. Press Enter. Click the left edge, click, and type 30. Press Enter.

Checkpoint: the rectangle is 40 mm wide and 30 mm tall, and its lines turn black. Black means fully fixed. If a line is still blue, add another dimension or ask for help.

5. Add a hole to the sketch

Click Circle. Click near the middle of the rectangle and drag out a circle. Click the Dimension tool, click the circle edge, and type 8 for the diameter. Then dimension the circle center from the left edge (20) and from the bottom edge (15).

Checkpoint: the circle is black and sits in the middle of the rectangle.

6. Finish the sketch

Click the green check mark (Accept) at the top right of the sketch.

Checkpoint: Sketch 1 appears in the feature list.

7. Extrude into 3D

Click Extrude in the toolbar. Click inside the rectangle but outside the circle. Type 10 for the depth. Click the green check mark.

Checkpoint: you have a 40 x 30 x 10 mm block with a round hole through it. Use the view cube to turn it and look at it from every side.

8. Name it

Right-click Part 1 in the Parts list and choose Rename. Call it “block”. Rename Sketch 1 to “block outline” the same way.

Try it

What’s happening

A sketch is a flat drawing with exact sizes. Extrude gives it thickness. Every step is saved as a feature in the list, so you can go back and change a number and the whole part updates. This is called parametric design, and it is how real engineers work.

If it doesn’t work

Note

Menu names and button positions are written from memory and have not been tested yet. If a step doesn’t match what you see, flag it so the page can be fixed.


D2 Sphere and Shapes

Goal

Build a round part by spinning a sketch, then round off an edge and cut a hole. By the end you will have a small dome (half a sphere) with a flat base, a rounded rim and a hole in the top.

What you need

Onshape, and your D1 skills (sketch, dimension, extrude). Time: about 40 minutes.

Steps

1. Make a new document

Create a document named “D2 Sphere - (your name)”.

Checkpoint: blank workspace with three planes.

2. Sketch half a circle

Click the Front plane, then Sketch. Click Line and draw a vertical line starting at the origin and going straight up. Then click the Three point arc tool (in the Circle group or the arc tool in the toolbar). Click the top end of the line, click the point on the right side at the same height as the origin, and drag to curve the arc. Finish with a line along the bottom, from the arc end back to the origin.

Checkpoint: you have a closed shape that looks like a quarter circle with the corner at the origin.

3. Set the size

Click Dimension and click the bottom line. Type 30. Press Enter. Click the vertical line and type 30. Press Enter. Make sure the arc is centered on the origin; if the shape is still blue, add a Coincident constraint between the arc center and the origin or ask for help.

Checkpoint: the quarter circle is 30 mm in radius and its lines are black.

4. Accept the sketch

Click the green check mark.

Checkpoint: Sketch 1 is in the feature list.

5. Revolve

Click Revolve in the toolbar. Click inside the shape for the sketch region. For the axis, click the vertical line on the left. Leave the angle at 360 degrees. Click the green check mark.

Checkpoint: you have a solid dome. Use the view cube to look at it from the side and from above.

6. Round the rim

Click Fillet in the toolbar. Click the bottom circular edge of the dome. Type 3 for the radius. Click the green check mark.

Checkpoint: the bottom edge is now smooth and rounded.

7. Cut a hole in the top

Click the Top plane and start a new sketch. Draw a circle centered on the origin and dimension it 6 mm in diameter. Accept the sketch. Click Extrude, click inside the circle, choose Remove, and set the end type to Through all. Click the green check mark.

Checkpoint: there is a hole straight through the top of the dome.

8. Name your work

Rename Part 1 to “dome”.

Try it

What’s happening

Revolve spins a flat sketch around a line, like a pot on a potter’s wheel. Anything round (a ball, a cup, a bottle) can be made this way. Fillet rounds sharp edges, which also makes a 3D print stronger. Extrude with Remove cuts material away instead of adding it.

If it doesn’t work

Note

Menu names and button positions are written from memory and have not been tested yet. If a step doesn’t match what you see, flag it so the page can be fixed.


D3 Enclosure

Goal

Design a small box with a lid that holds an Arduino Uno. By the end you will have two parts, a base and a lid, ready to 3D print.

What you need

Onshape, and your D1 and D2 skills. An Arduino Uno to measure, or use these sizes: the board is about 68.6 mm long and 53.3 mm wide. Time: 60 minutes or more. Do this one over two sessions if you need to.

Steps

1. Make a new document

Create a document named “D3 Enclosure - (your name)”.

2. Sketch the outside of the box

Click the Top plane, then Sketch. Draw a rectangle starting at the origin. Dimension it 78 mm long and 63 mm wide. (That is the board plus 5 mm of room on every side.) Accept the sketch.

Checkpoint: a fully black rectangle, 78 x 63.

3. Extrude the block

Click Extrude and click inside the rectangle. Set the depth to 25. Click the green check mark.

Checkpoint: a solid block 78 x 63 x 25 mm.

4. Hollow it out

Click Shell in the toolbar. Click the top face of the block to remove it. Set the thickness to 2. Click the green check mark.

Checkpoint: the block is now an open-top box with walls 2 mm thick.

5. Cut a hole for the USB cable

Click the front outside face of the box (the short side where the USB port will be) and click Sketch. Draw a rectangle about 14 mm wide and 12 mm tall, with the bottom edge about 5 mm above the floor. Dimension it. Accept the sketch. Click Extrude, choose Remove, click inside the rectangle, and set the end type to Through all. Click the green check mark.

Checkpoint: there is an opening in the short wall big enough for a USB cable.

6. Rename the base

Rename the part to “base”.

7. Make the lid

Click the Top plane and start a new sketch. Draw a rectangle 78 x 63 again, from the origin. Accept the sketch. Click Extrude, click inside the rectangle, set the depth to 2, and under “New” choose New part (not Add), so that it makes a separate part. Click the green check mark. Rename this part “lid”.

Checkpoint: the Parts list shows two parts, base and lid.

8. Make the lid sit on the box

Sketch on the top face of the lid part. Draw a rectangle slightly smaller than the inside of the box: 72 x 57. Center it on the lid. Extrude it 3 mm upward and join it to the lid (choose Add). This lip fits inside the box walls.

Checkpoint: the lid has a small raised lip on one side.

9. Look at the box and lid

Use the view cube to look at it from every side. Move the lid up (click the Move face or Transform tool) if you want to see inside.

10. Export the file for printing

Right-click the tab or the part in the Parts list. Choose Export. Choose STL as the format. Export “base” and “lid” as separate files, and give them clear names. Bring them to the lab to be printed.

Checkpoint: you have two STL files, one for the base and one for the lid.

Try it

Bridge

Shape changes sound. Build your box, tap it, and record the sound. A different box makes a different sound. You can bring that recording into Pure Data or Data Science.

What’s happening

You started with a plan: a real object with real measurements. You added a margin so the board fits. Shell hollowed the box. Separate parts let a base and a lid print as two pieces. This is the same process used to design phone cases and product housings.

If it doesn’t work

Note

Menu names and button positions are written from memory and have not been tested yet. If a step doesn’t match what you see, flag it so the page can be fixed. Arduino Uno size is approximate; check against the board you use.