- [Instructor] We're staying in our new office project
dot DWG file.
And what we're going to take a look at now
is creating a simple dynamic block.
Our workstation block here that we created
is just a simple AutoCAD block.
What we're going to do,
is develop a simple dynamic block
that allows us to add some dynamic properties to it.
I'm just going to hit escape to deselect the workstation,
make sure on the layer dropdown
you've set your layer to the doors layer.
Like say.
We're then going to zoom in
on the door here in the bottom left corner.
So get here,
cross here over it just move it a little bit
and zoom in like that.
There we go.
Now we're not going to place
the arc and line on the doors layer just yet.
We're going to select them both
notice they're on the wrong layer,
the walls layer there
and I'm going to put them on the zero layer.
like so.
And then I'm just going to hit escape to deselect.
Now the arc and the line there
we're going to form a simple dynamic block from them.
And we're basically going to do what we did before
when we created our workstation.
We're going to go up to the insert tab on the ribbon,
like so,
and we're going to go over to create block here
and select create block.
And that's going to be our block definition
dialogue box again,
and we're just going to call it door.
D- O- O- R
and then a dash
and then D- Y -N for dynamic,
door dynamic like that..
Now, the reason I've put the arc
and the line that formed the door
on the layer zero.
is it means that when we bring the block
into the drawing, anytime soon,
it'll automatically adopt the current drafting layer.
That's why I set doors to the current drafting layer.
Now we're going to do the same thing
as we've done before.
We're going to pick a point for the base point
which is going to be the end point here
on the end of the door.
We're going to select the objects that make up the door
like so, which is easy.
It's a line and an arc,
nothing too complex.
And then just press enter to confirm.
We're going to select delete
like we did previously.
So it'll delete the original objects,
make sure that scale uniformly
and allow exploding are ticked,
make sure that your block unit
is set to millimeters and in the description,
we'll just put door
and then we'll put a dash
and then we'll put dynamic.
Make sure you spell it right.
Unlike me dynamic there.
And what will also put is metric
because it is a metric dynamic door.
So make sure
that's all typed in the door description like that.
Then we're going to tick
opening block editor
and click on okay.
That will take us to the block editor
that we worked on previously with our workstation.
Now what we're going to do,
we're going to zoom out slightly
just come back on the Wheeler notch.
So we've got a bit of space
around the line and the arc that form the door,
and we're going to make this dynamic.
So we're going to use
the block authoring palettes here.
We're going to go to the parameters tab.
And we're going to select a base point first.
So there's our base point,
click on it.
And that's going to go on this corner here.
See the endpoint snap left click.
And you'll see a little circle in a cross here
up here on the end.
We're then going to select a flip parameter.
This one here,
this adds a flip parameter to the block definition.
So we click on flip,
come into the drawing area
and it asks for the base point of our reflection line.
So we're in essence, mirroring the door,
hold down
shift
and click on the right hand mouse button.
That'll bring up your snap overrides,
select mid between two points.
And you're going to go from this point here,
left click,
to this point here, left click.
And go vertically upwards
Can you see,
there's like a bluey greeny line going upwards.
Use your polar tracking
to make sure it's exactly vertical.
Come to about here and click.
And you'll see that you get flip state one.
So I'm just going to place that
near the blue dotted line
and click that's our label.
You can rename the label if you wish
it's entirely up to you on that one.
But you can see now
there's our flip parameter there,
and we've got a little exclamation mark
because we need to apply
a flip action to the parameter.
So what we're going to do,
we're going to go to the actions tab
on the palette now,
and there's our flip action.
And you can see,
it looks like the mirror command.
So I'm going to click on flip
and come into the drawing area
and select our flip state one parameter.
It then prompts us to select objects
zoom right out
and literally select everything.
So I'm going to click down here bottom, right?
Drag my window selection
over everything and left click again.
Like so.
Everything should go blue.
Press enter to confirm that.
And you should now see,
can you see you've got a little flip action
applying to your arrow which is your flip parameter.
Now we can test this.
If I go up to test block here,
this will take me into like a test space
where I can select the block,
click on the arrow and I can now flip my door.
Can you see that?
I can flip the door swing either way.
I can now close the test block
up here on the ribbon,
clicking on the green tick
takes me back into the block editor.
Saying, see
there's the block editor tab up on the ribbon.
What I'm going to do now
is I'm going to go to close block editor
and it'll prompt me.
Do I want to save the changes to the door?
D Y N block.
Yes, I do.
So I'm going to save those changes.
So let's now save the changes
to that particular block.
So if I now go back
to the insert tab on the ribbon,
and come down here to insert,
and I have a look in all my different blocks.
If I scroll up a bit,
can you see I've got door D Y N.
So I click on it,
bring it into the drawing
see it's using the insertion point base point.
I pop that on that corner there
and click, like so.
Now, if I select this,
I've got a little arrow there
and I can change the flip of my door as you can see.
So the door swing can go either way now.
And I've made a simple dynamic block.
When I hit escape though,
you'll notice
because I created the block on the zero layer.
It's now adopted the current drafting layer
which when I go back to the home tab
on the ribbon is the doors layer.
So it's now on the correct layer as well.
Just double click on the wheel
to zoom extends
so that you can see
all of your visible drawn and objects.