- [Instructor] Now we have four documents in total.
We've got the assembly, the enclosure parent part, and now
the two new enclosure halves, the top and the bottom.
So we're going to add these two new parts into the assembly.
Firstly, make sure that you've got the assembly
and both of the new parts open in SolidWorks.
Remember that you can press control tab
to switch between your open documents.
So you can see I've got the enclosure top,
and the enclosure bottom open,
but we're actually in the assembly.
The two new parts that we're going to add
are the exact same size as the enclosure parent part.
So firstly we're going to hide that part.
To do that all we need to do is move the mouse
over it in the graphics area, and then press the tab key.
So now you can see that the part has disappeared,
but if you look over here on the left,
we can see it's still in the parts tree.
So we're still using those references it's just not visible.
And if we want to reshow it, we can always
just click on it and press show components.
To insert our new parts, let's go to the assembly tab
and click on insert components.
And now you should see your two
new parts here under open documents.
If you don't see them there, it just means
that they're not open in SolidWorks,
so you can always click browse down here
and find them in your project folder.
Let's start with the enclosure bottom part.
So left click on it and move your mouse
into the graphics area, but don't click anywhere else yet.
You should see that as you move your
mouse around, the part follows your mouse.
We can use these three small buttons down here
to rotate the part around to the correct orientation.
So let's move it around so it looks
like it's lined up with the PCP like this.
Then let's left click to place it
in roughly the correct position.
Something like that.
Now we're going to use mates to line the parts up exactly.
So to do this, let's expand the enclosure bottom part
by clicking on this small arrow here.
Then let's select the first plane, which is the front plane.
So, left click to select it.
Then hold down control and hover over
these assembly planes at the top.
And you should find one of them roughly
lines up with the first plane that you selected.
So for me, it's the top plane.
So keeping control held down, select that plane
that lines up and then release control
and from the menu that pops up,
we want a coincident mate, which is this first option here.
So left click to add that.
And you should see that the part moves
to the correct position in that plane.
Now we just need to do the same
thing for the other two planes.
So under the enclosure bottom part,
choose the next plane, which is the top plane.
Hold down control, and then choose
the appropriate assembly plane.
So this time it's the front plane that lines up.
Select that, then release control and
add the coincident mate by left clicking on this icon.
And you can see it also lines up in that plane.
And then finally, let's add the last one.
To choose the right plane, hold down control
and then choose the one that lines up,
which is also the right plane.
And then left click to add the coincident mate.
So now you can see that part is lined up
all the way around, and it's fully fixed, we can't move it.
So this was one of the reasons why we used
the midplane extrude initially.
It means that the origin of both the part
and the assembly are in the same place, so it's very easy
to line them up using the planes like this.
So now what we need to do is add this second part,
and we can do this in the same way,
by going to insert components, and this time
choose the enclosure top part.
So left click on it, move it into the graphics area,
and then use these small buttons to line it up.
So that's the correct orientation,
and left click to place it.
And if you do place it too early, and you lose those
buttons, you can also just hold down the right
mouse button and drag around to change the orientation.
As long as it's roughly in the correct position.
Something like that.
So now let's add mates like we did with the first part.
So firstly, expand the part and then choose the first plane.
So that's the front plane.
Hold down control, and then hover over
the assembly planes at the top here
and find the one that lines up.
So for me it's the top plane.
And then add the coincident mate.
And then let's do the same for the final two ones.
So make sure you're under the enclosure top part,
choose the next plane, hold down control,
and then choose the plane that lines up.
And then add the coincident mate.
And then finally let's add the last one.
So again make sure you're under the enclosure top part,
choose the right plane, and then choose
the plane that lines up, which is the right plane again.
And then add the coincident mate.
So now you can see both parts are lined up
and both of them are fixed.
So now you might be saying, why didn't we just
make these two parts directly within this assembly?
Why did we make that enclosure parent part first?
What you'll find in SolidWorks is that
there's many different ways to achieve the same end result,
and sometimes it's not necessarily
a right or a wrong answer, but by doing it this way,
it means that if our enclosure changes,
the size or the shape or anything like that,
we can just make those changes to that
one enclosure parent part and then those changes
will pull through to both of these child parts.
So this is quite a simple assembly,
so it might be quite easy to make those changes manually.
But if you can imagine you've got a much more complex
assembly, then this can be a really valuable
technique for use in the future.
So for now, all we need to do
is save the assembly by pressing control S.