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:02.07
- [Instructor] During a Generative Design study,
2
00:00:02.07 --> 00:00:05.05
Dynamo has to run the same graph many times
3
00:00:05.05 --> 00:00:07.02
to generate different options.
4
00:00:07.02 --> 00:00:10.03
If it needs to access Revit elements with each run,
5
00:00:10.03 --> 00:00:13.07
the computations that are required can be quite heavy.
6
00:00:13.07 --> 00:00:16.05
The Data.Remember node assists with this
7
00:00:16.05 --> 00:00:18.09
by storing data for later use.
8
00:00:18.09 --> 00:00:21.06
So let's take a closer look at it in this lesson.
9
00:00:21.06 --> 00:00:23.06
I currently have the Revit exercise file
10
00:00:23.06 --> 00:00:24.09
open to this lesson,
11
00:00:24.09 --> 00:00:26.08
which simply has a wall in it.
12
00:00:26.08 --> 00:00:29.07
We'll use this wall to test the remember node,
13
00:00:29.07 --> 00:00:34.09
so let's go ahead and open up a new Dynamo script.
14
00:00:34.09 --> 00:00:36.09
The Data.Remember node is found
15
00:00:36.09 --> 00:00:40.05
within the Generative Design section,
16
00:00:40.05 --> 00:00:44.06
and then data, and here's this remember node.
17
00:00:44.06 --> 00:00:46.09
This node can be used to store data
18
00:00:46.09 --> 00:00:50.03
by storing the information within the Dynamo file.
19
00:00:50.03 --> 00:00:53.05
This is however limited to texts, numbers,
20
00:00:53.05 --> 00:00:57.03
and geometric data such as solids, points, and surfaces.
21
00:00:57.03 --> 00:00:59.00
So let's use it to store information
22
00:00:59.00 --> 00:01:01.06
about the wall in Revit.
23
00:01:01.06 --> 00:01:02.07
We can do this by using
24
00:01:02.07 --> 00:01:09.08
the select wall element node in Dynamo.
25
00:01:09.08 --> 00:01:16.00
And then in Dynamo, let's go ahead and select that wall.
26
00:01:16.00 --> 00:01:18.01
So we now have that wall element contained
27
00:01:18.01 --> 00:01:20.04
in this select wall element.
28
00:01:20.04 --> 00:01:24.08
Next, let's plug that into Data.Remember.
29
00:01:24.08 --> 00:01:26.01
It's executed automatically,
30
00:01:26.01 --> 00:01:28.03
because I have automatic set,
31
00:01:28.03 --> 00:01:30.05
and we can see that there's an error.
32
00:01:30.05 --> 00:01:33.01
And this is because the Data.Remember node
33
00:01:33.01 --> 00:01:36.08
cannot store the data of type Revit.Elements.Wall.
34
00:01:36.08 --> 00:01:40.00
That is, it can't store a Revit element.
35
00:01:40.00 --> 00:01:43.02
We can only store information about the wall.
36
00:01:43.02 --> 00:01:46.02
So let's try storing the location of the wall
37
00:01:46.02 --> 00:01:50.06
by first retrieving a get location node,
38
00:01:50.06 --> 00:01:52.09
plugging the wall element into that.
39
00:01:52.09 --> 00:01:55.06
As we can see in the background,
40
00:01:55.06 --> 00:01:57.04
we have retrieved the location of the wall,
41
00:01:57.04 --> 00:02:00.02
which is a line.
42
00:02:00.02 --> 00:02:02.04
Because this is a type of geometry,
43
00:02:02.04 --> 00:02:03.08
we should be able to store it,
44
00:02:03.08 --> 00:02:07.04
so let's put that into the Data.Remember node.
45
00:02:07.04 --> 00:02:09.04
Perfect, so we can see that's now storing
46
00:02:09.04 --> 00:02:11.08
that information about the line.
47
00:02:11.08 --> 00:02:15.09
We can test how this works by saving the file.
48
00:02:15.09 --> 00:02:21.04
I'm going to save mine to desktop as test.
49
00:02:21.04 --> 00:02:24.02
And then closing down Dynamo,
50
00:02:24.02 --> 00:02:27.05
deleting the wall element in Revit,
51
00:02:27.05 --> 00:02:31.04
and then opening up that script.
52
00:02:31.04 --> 00:02:35.00
Perfect, so we can see the select wall element has failed,
53
00:02:35.00 --> 00:02:37.05
because the wall is no longer in Revit,
54
00:02:37.05 --> 00:02:41.01
however the Data.Remember node is still storing information
55
00:02:41.01 --> 00:02:42.07
about that line.
56
00:02:42.07 --> 00:02:46.06
This allows the Generative Design script to execute quickly
57
00:02:46.06 --> 00:02:49.08
by not requiring Dynamo to continually access
58
00:02:49.08 --> 00:02:53.08
the data or the information directly from Revit.
59
00:02:53.08 --> 00:02:57.04
The information is stored within this node.
60
00:02:57.04 --> 00:02:59.03
The remember node also has the benefit
61
00:02:59.03 --> 00:03:02.08
of storing data, which can be used outside of Revit.
62
00:03:02.08 --> 00:03:05.00
So for example, we could open up this script
63
00:03:05.00 --> 00:03:08.05
in Dynamo Studio and still have that Revit data,
64
00:03:08.05 --> 00:03:10.06
or we could send the script to a colleague
65
00:03:10.06 --> 00:03:13.03
without the Revit file, and the data can be stored
66
00:03:13.03 --> 00:03:15.04
and used by that person.
67
00:03:15.04 --> 00:03:16.08
While this node is not required
68
00:03:16.08 --> 00:03:18.04
in the three box masking study,
69
00:03:18.04 --> 00:03:20.06
which we'll continue to look at in this section,
70
00:03:20.06 --> 00:03:24.00
we will take a closer look at it later on in the course.
71
00:03:24.00 --> 00:03:26.01
The important thing to remember here is
72
00:03:26.01 --> 00:03:28.01
if we're using Revit elements
73
00:03:28.01 --> 00:03:30.02
in our Generative Design studies,
74
00:03:30.02 --> 00:03:33.01
we need to store the information about those elements
75
00:03:33.01 --> 00:03:34.09
in a Data.Remember node.
6042
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.