- [Instructor] So far we've made the main enclosure shape,
and we've added these cutouts for the ports.
If we hide this top part,
by putting the mouse over it and pressing the Tab key,
then we can see that the PCB isn't actually fixed
in the enclosure.
If this was a real physical model,
and we turned upside down,
then the PCB would just fall out.
So if I reshow that top part,
and then make the top and the bottom semi-transparent,
what we're going to do is add some screws
that come up through the bottom half,
go through these holes in the PCB,
and then screw into standoffs in the top half.
These screws will hold the enclosure halfs closed,
and they'll also clamp the PCB in place.
We're going to start with the top half.
So let's left click on it and press Edit Part.
Then let's rotate the model around
so we're looking from underneath.
And we want to start a sketch on this inside face.
Left click to select it and then choose Sketch
from the menu that pops up.
And then we can go to a normal to, view.
On the sketch tab,
let's choose the circle tool,
and then zoom in on one of the corners.
So we want to add circles
that are lined up with these PCB holes.
If you hover over the edge of the hole,
and then move in,
you should be able to pick up the center point like this.
Then you can left click to start a circle,
and then just drag out and left click again
to set the diameter.
And then let's do the same on the other three corners.
So pick up the center point,
and then set the diameter.
It doesn't matter at this stage,
if these circles are all different diameters.
When you've got all four of them,
we can press Escape to close the circle tool.
And then let's select all of them.
So you can either press Ctrl + A,
or you can just drag a box around them.
And we want to make them all the same diameter.
You can do this by going over here on the left,
under Add Relations,
let's click Equal.
So now they're all the same size and we can set that size,
by going to Smart Dimension,
then clicking on any circle,
and let's just set the diameter as eight millimeters
to type eight and press Enter.
So now these are all eight millimeters,
and they're all fully defined.
So now we just need to do an extruded boss.
And you can do this by going to the Features tab
and just pressing Extruded Boss Base
we're going to do a blind extrude upwards 8.4 millimeters.
So that will take us up to the very bottom of the PCB.
If your preview looks good,
press OK.
And now you can see that the standoffs are added.
But now we need to add some holes for the screws to go into.
But we can do this very easily using the hole wizard.
This is also on the Feature tab.
Select Hole Wizard which is here.
And you can see over here on the left we've got loads
of different options.
And it looks quite daunting,
but we're just going to use a straight tap,
which is this one.
So left click on that option.
And then here under Standard,
let's make sure we're on ANSI Metric.
Then under the Size,
let's choose M3 by 0.5.
So this just means that an M3 size screw will fit
into this hole.
And then finally,
from the End Condition,
let's choose Up To Surface.
Make sure you're in this box,
so make sure it's blue.
And then let's choose the original face
that we started the sketch on.
Now all we need to do is set the position of the holes.
And we can do this by going to the Positions tab,
here on the left.
And it says select the face for the hole.
So let's zoom in and we want the holes to start on the top
of the standoffs that we just made.
So hover over the top of the standoff
and just left click to select that face.
So now you can see,
we've got this preview following the mouse around,
and everywhere we click,
we will add a hole.
Firstly, let's go to a normal to, view,
and then zoom in on one of the corners again.
You can hover over the edge of the standoff,
and we want to add holes in the middle of those standoffs.
So pick up those center points,
and then do the same for the other corners
to hover over the circular edge,
and then move in and pick up the center point.
And you should see the yellow previews being added
as you add these circles.
When you've got all four,
you should be able to see a preview of the holes like this.
So I've got one in each corner,
and they go down to that face that we previously selected.
Then when you're happy,
just press OK up here on the left,
and you can see those holes are added.
So the final thing we need to do
is just rename those standoff features.
So expand your enclosure top parts,
go down to the bottom,
and let's just double click,
or left click on it and press F2
and let's call this boss extrude something like Standoffs.
Then you can exit editing your parts
and you can press Ctrl + S to save.