- [Instructor] Now that we have an assembly
with a PCB part in it,
we're actually going to start on the enclosure itself.
We're going to insert a new part into the assembly,
and then create the general enclosure shape,
and then later on we'll split that into separate halves
and add more details.
The first thing that we're going to do
is go over to the Assembly tab,
and then click on this drop-down
underneath Insert Components,
and then select New Part.
At first it looks like nothing's really happened,
but if you look at the mouse pointer,
you can see we now have this green tick next to the cursor.
This indicates that we need to choose
either a plain or a flat face to start the new part on,
and we're going to choose
one of the assembly planes for this.
If you hover over them here on the left,
you can see we have the front plane, the top plane,
and the right plane,
and we want to select the one
that's parallel to the large flat face of the PCB.
So for me this is the top plane.
For you it might be a different one, that's absolutely fine,
as long as it fully surrounds the PCB like this.
So left-click to select the appropriate one.
And now you can see
that the PCB has turned into this wireframe view,
and up here on the right we've got these new icons,
and these indicate that we're now editing that new part,
and we're editing a sketch within that part.
So now we're going to add details to that sketch
to start building up our 3D features.
Press the spacebar,
and the Orientation view menu will pop up.
And if you click on this pin icon
it will keep this menu open and on top of everything else.
And this is a really useful little menu,
just because it got loads of preset views
and it's a really easy way
to control the view of your model.
We're going to select this one which is the normal two view.
This will spin your model around
so we're looking directly down on the plane
that we're sketching on.
Then go up to the Sketch tab if it's not already selected,
and we want to choose the Rectangle tool, which is this one.
Down here on the left we've got some different options
but we want the corner rectangle,
which is the second one here.
If you look at the icon that we just selected
you can see it has some small numbers on it,
and these basically indicate how this tool works.
So number one,
the first click sets the center point of the rectangle,
and then number two,
the second click sets the corner of the rectangle.
We want to start the rectangle from the origin,
which is this set of red arrows in the middle of the model.
So left-click once there to start the rectangle,
drag it outwards, beyond the edge of the PCB,
and then left-click again to set the corner,
and then you can press Escape to exit the tool.
So you might notice
that the lines of this rectangle are blue,
and that means they're under defined,
and it says Under Defined down here.
So that means if we drag them and move them around,
the size of them isn't fixed.
So we want to set the size of them
using the Smart Dimension tool.
Again on the Sketch tab, choose the Smart Dimension tool,
and then all we need to do
is click on one of the outer lines of the PCB,
and then click on one of the lines of the rectangle,
and then just drag out, left-click,
and write in for four millimeters.
And then we can do the same on the top here.
Again, four millimeters.
And then you can press Escape
to exit the Smart Dimension tool.
So now you can see that these lines have turned black,
and down here it says Fully Defined.
So if we try to drag them around we now can't move them.
Throughout this course you can adjust the dimensions
to suit your own needs.
In this case, we've made the sketch
four millimeters larger than the PCB
because the walls of the enclosure
will be three millimeters thick,
but we also want one millimeter of clearance
between the board and the walls,
but we'll go over that in a bit more detail
later in the course.
For now we can just exit the sketch by clicking up here,
and then we can click in the same place again
to exit editing the part.
Now we can right-click on the new part
which will be the one at bottom of the parts tree,
and select Rename Part.
And let's call it something like Enclosure Parents.
Then we can just save our assembly
by clicking on the Save icon
or pressing Control + S for Save All,
and you probably get a pop-up like this
that says save internally or save externally.
Let's save externally, just keep the details the same,
save it in the same folder as the Enclosure Part,
and then press OK.
And if you don't get that pop-up,
you might just need to right-click on the part
and press Save in external part.