Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00.05 --> 00:00:03.00
- [Instructor] The last generative design specific node
2
00:00:03.00 --> 00:00:04.08
that we'll be learning about in Dynamo
3
00:00:04.08 --> 00:00:06.08
is the data.gate node.
4
00:00:06.08 --> 00:00:09.08
This node allows us to control flow between elements
5
00:00:09.08 --> 00:00:12.02
in our generative design scripts.
6
00:00:12.02 --> 00:00:15.04
I currently have the Revit and Dynamo exercise files
7
00:00:15.04 --> 00:00:16.09
open for this lesson.
8
00:00:16.09 --> 00:00:20.06
The Dynamo file is the three box massing study sample
9
00:00:20.06 --> 00:00:22.06
provided by Autodesk.
10
00:00:22.06 --> 00:00:26.06
The data.gate node is found in the generative design tab
11
00:00:26.06 --> 00:00:30.00
of the node library, and then the data section
12
00:00:30.00 --> 00:00:32.09
and here we have the gate node.
13
00:00:32.09 --> 00:00:34.02
This script, however, has already placed
14
00:00:34.02 --> 00:00:38.00
one of these nodes in the integrate section of the script,
15
00:00:38.00 --> 00:00:39.08
which is found in the bottom right.
16
00:00:39.08 --> 00:00:42.01
Here we have this data.gate node.
17
00:00:42.01 --> 00:00:45.01
The gate node is similar to a Boolean toggle
18
00:00:45.01 --> 00:00:49.02
in that it has two states, either open or closed.
19
00:00:49.02 --> 00:00:52.05
If it is set open, then data that is input to the node
20
00:00:52.05 --> 00:00:55.09
will be passed through an output and if it's closed,
21
00:00:55.09 --> 00:00:58.05
then the data won't be passed through.
22
00:00:58.05 --> 00:01:02.05
We can test this by hitting run on the script.
23
00:01:02.05 --> 00:01:05.03
As we can see, the Dynamo geometry has been created
24
00:01:05.03 --> 00:01:06.06
in the background.
25
00:01:06.06 --> 00:01:10.00
However, this direct shaped.by geometry node
26
00:01:10.00 --> 00:01:13.08
is not receiving that geometry from the gate's node
27
00:01:13.08 --> 00:01:15.06
because it's set to closed
28
00:01:15.06 --> 00:01:18.04
and therefore it's outputting null.
29
00:01:18.04 --> 00:01:22.02
So if we open this gate and then hit run again,
30
00:01:22.02 --> 00:01:24.08
we can see that that node now executes
31
00:01:24.08 --> 00:01:27.09
and it's creating a direct shape in Revit.
32
00:01:27.09 --> 00:01:30.04
There are a couple of reasons why this is required
33
00:01:30.04 --> 00:01:33.07
for a generative design script in Dynamo.
34
00:01:33.07 --> 00:01:35.09
As the generic design script runs,
35
00:01:35.09 --> 00:01:38.06
it's running the Dynamo script over and over
36
00:01:38.06 --> 00:01:40.04
to generate different results.
37
00:01:40.04 --> 00:01:42.04
If we did not have this closed gate,
38
00:01:42.04 --> 00:01:44.03
it would mean the elements in Dynamo
39
00:01:44.03 --> 00:01:46.06
would be continuously created in Revit
40
00:01:46.06 --> 00:01:49.04
slowing the process considerably and resulting in
41
00:01:49.04 --> 00:01:52.04
a lot of elements in Revit that we simply don't want.
42
00:01:52.04 --> 00:01:55.00
The second reason this node is useful is that
43
00:01:55.00 --> 00:01:58.07
it can be controlled in Revit to create the final elements
44
00:01:58.07 --> 00:02:00.06
when finishing a study.
45
00:02:00.06 --> 00:02:05.04
So if we close down Dynamo,
46
00:02:05.04 --> 00:02:09.05
we can see the elements that we just created from Dynamo.
47
00:02:09.05 --> 00:02:13.02
Let's delete that and then let's create a new study
48
00:02:13.02 --> 00:02:16.06
which will be a three box massing study
49
00:02:16.06 --> 00:02:19.00
and we'll leave everything as default.
50
00:02:19.00 --> 00:02:22.03
However, let's change the population size to five
51
00:02:22.03 --> 00:02:27.08
and generations to five as well,
52
00:02:27.08 --> 00:02:29.03
and hit generate.
53
00:02:29.03 --> 00:02:32.03
Here we can see it's generated a few results
54
00:02:32.03 --> 00:02:34.05
and by selecting one, we can go ahead
55
00:02:34.05 --> 00:02:36.01
and create the Revit elements
56
00:02:36.01 --> 00:02:39.05
by selecting the create Revit elements button.
57
00:02:39.05 --> 00:02:43.00
This create button is basically telling the Dynamo script
58
00:02:43.00 --> 00:02:46.02
to open all of the data.gate nodes
59
00:02:46.02 --> 00:02:52.06
so that the elements can be created in Revit.
60
00:02:52.06 --> 00:02:55.08
This is why this specific node is required to be used
61
00:02:55.08 --> 00:02:57.07
in our generative design scripts,
62
00:02:57.07 --> 00:03:00.08
rather than an if else node for example.
63
00:03:00.08 --> 00:03:04.09
If you're using Project Refinery rather than Revit 2021,
64
00:03:04.09 --> 00:03:07.04
it's important to note here that this create option
65
00:03:07.04 --> 00:03:09.07
is not available in Dynamo.
66
00:03:09.07 --> 00:03:12.09
Therefore, once you find a solution you like in Dynamo,
67
00:03:12.09 --> 00:03:14.09
you'll have to manually open the gate
68
00:03:14.09 --> 00:03:17.00
and create the elements from within there.
5593
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.