Warning
Always check that the files you download and use are accurate. Also check the licences attached to these files. Some have restrictive commercial licences.
Creating your first assembly in OnShape
OnShape - First assembly
Creating your first assembly file in OnShape
Prerequisites:
Software:
The goal of this tutorial is to introduce you to assemblies in OnShape. We will make 2 parts, a servo motor cradle and a servo horn, which we will assemble with a ready-made servo motor model that we will import.
The model comes from the GrabCAD website. It is a community site where engineers share many technical files.
Create a new Document in OnShape, then a sketch on the Top plane. Then reproduce the dimensioned sketch opposite.


Follow the download link below and save the model on your computer. This device is a servo motor, an actuator very commonly used in model making and robotics to drive mechanisms. To learn more about how this actuator works, you can watch the following videos (in French):
Click the + in the list of tabs at the bottom left, then click Import. Select the file you downloaded earlier, then Open.

In the window that appears, click Combine to a single Part Studio. This imports your .stp file into a CAD Imports folder, then creates a Part Studio for your servo motor.

Click the Assembly tab, or create a new assembly by clicking
. In the assembly, click Insert, then select the servo horn and the bracket, and confirm. You should see your parts in the assembly tree on the left as well as in your 3D view.
For the servo motor, since its Part Studio is made of several imported parts that are not assembled, the method differs slightly. Click Insert, then, before clicking your servo motor, click Insert entire Part Studio rigidly

You can then insert your servo motor. It will appear as a group that is already assembled.

For your assembly to behave properly, we start by fixing one of the elements. Right-click your bracket, then select Fix. That way, the bracket will not move and the assembly will be built relative to this element.

Keep in mind that if your assembly changes, you may have to unfix this element in future.
When you click one of the parts of the model, a white manipulator appears. It lets you move your part in space. Move your parts to put them roughly in position relative to one another. It does not need to be precise.

We will now rigidly assemble the servo motor and the bracket plate. Click Fastened mate, then select the two geometric elements you want to fasten.

Notice how elements appear when you hover over your part. These are mate connectors, the tools that let you assemble your part. Select a connector on the bracket side, at the centre of one of the holes, then a second connector on your servo motor.
Once done, you can confirm your action.
We will do the same with the servo horn, using the Revolute mate tool:

Tip When your cursor is over a surface, if you hold down the Shift key of your keyboard, OnShape locks the face and you can then select a connector on that surface more easily.