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.09
- [Instructor] With every generative design algorithm,
2
00:00:02.09 --> 00:00:05.03
we need inputs and outputs.
3
00:00:05.03 --> 00:00:08.01
Inputs are required to generate options
4
00:00:08.01 --> 00:00:11.02
and outputs are used to evaluate those options.
5
00:00:11.02 --> 00:00:14.05
So let's have a look at how inputs and outputs are specified
6
00:00:14.05 --> 00:00:17.01
in a generative design script.
7
00:00:17.01 --> 00:00:20.00
For this lesson, I have the exercise file open
8
00:00:20.00 --> 00:00:22.09
which is the sample file provided by Autodesk
9
00:00:22.09 --> 00:00:25.05
for the three box massing study.
10
00:00:25.05 --> 00:00:28.08
This study allows us to move and adjust the height
11
00:00:28.08 --> 00:00:30.08
of three different cuboids
12
00:00:30.08 --> 00:00:34.02
in order to optimize their location and size
13
00:00:34.02 --> 00:00:38.00
to find a form which has a minimal surface area
14
00:00:38.00 --> 00:00:39.08
and a maximum floor area.
15
00:00:39.08 --> 00:00:43.04
In this script, it's broken up into three sections.
16
00:00:43.04 --> 00:00:47.00
We have the inputs in these pink blocks.
17
00:00:47.00 --> 00:00:50.04
We have the workings or the algorithms of the script
18
00:00:50.04 --> 00:00:52.08
in these light green blocks.
19
00:00:52.08 --> 00:00:56.01
And then we have the outputs in these orange blocks.
20
00:00:56.01 --> 00:00:59.05
We also have a way to integrate with Revit in this gray box,
21
00:00:59.05 --> 00:01:02.01
which we'll look at later on.
22
00:01:02.01 --> 00:01:07.02
For now, let's focus on the inputs and the outputs.
23
00:01:07.02 --> 00:01:11.02
Inputs control what data a generative design script can use
24
00:01:11.02 --> 00:01:14.03
to generate different design options.
25
00:01:14.03 --> 00:01:17.05
These need to be easily adjustable and measurable.
26
00:01:17.05 --> 00:01:20.03
Therefore, there are a limited number of data types
27
00:01:20.03 --> 00:01:22.04
that could be used as an input.
28
00:01:22.04 --> 00:01:27.05
These include a number slider,
29
00:01:27.05 --> 00:01:32.04
an integer slider,
30
00:01:32.04 --> 00:01:39.02
or we could have a blend toggle.
31
00:01:39.02 --> 00:01:42.05
We could also have Revit selection nodes.
32
00:01:42.05 --> 00:01:44.09
Revit selection nodes are not adjusted
33
00:01:44.09 --> 00:01:47.03
during the generative design algorithm.
34
00:01:47.03 --> 00:01:49.07
However, they are used to allow the user
35
00:01:49.07 --> 00:01:53.07
to select elements in the Revit model.
36
00:01:53.07 --> 00:01:56.02
From these elements, we can then extract data
37
00:01:56.02 --> 00:01:59.01
to be used in the algorithm in some way.
38
00:01:59.01 --> 00:02:00.08
These set of selection elements
39
00:02:00.08 --> 00:02:03.08
are found within the generative design tab
40
00:02:03.08 --> 00:02:06.02
in the node library, and then selection.
41
00:02:06.02 --> 00:02:09.02
Here we can find a selection of different select nodes
42
00:02:09.02 --> 00:02:12.01
which will show up on the study dialogue.
43
00:02:12.01 --> 00:02:13.02
It's important to note here
44
00:02:13.02 --> 00:02:15.09
that if you're using Project Refinery Beta,
45
00:02:15.09 --> 00:02:18.09
you'll need to use the dynamo selection nodes
46
00:02:18.09 --> 00:02:23.00
that are provided in the Revit and then selection tab.
47
00:02:23.00 --> 00:02:26.00
These generative design selection nodes down the bottom
48
00:02:26.00 --> 00:02:28.07
are designed to work from within the Revit dialogue,
49
00:02:28.07 --> 00:02:32.00
which isn't available with Project Refinery.
50
00:02:32.00 --> 00:02:33.09
The dynamo script that we're looking at
51
00:02:33.09 --> 00:02:36.01
uses only one type of input.
52
00:02:36.01 --> 00:02:40.04
And that is the integer slider.
53
00:02:40.04 --> 00:02:42.07
Each of these are used to control the heights
54
00:02:42.07 --> 00:02:45.09
and the position of the different cuboids.
55
00:02:45.09 --> 00:02:47.00
With each of these nodes,
56
00:02:47.00 --> 00:02:50.00
simply placing them does not make it an input
57
00:02:50.00 --> 00:02:51.09
for the generative design study.
58
00:02:51.09 --> 00:02:54.04
To make them an input that shows up in Revit,
59
00:02:54.04 --> 00:02:56.05
we need to identify them as such.
60
00:02:56.05 --> 00:02:59.07
And we can do this by right clicking the node title
61
00:02:59.07 --> 00:03:02.04
and selecting is input.
62
00:03:02.04 --> 00:03:05.03
As we can see, the sliders that are in the script
63
00:03:05.03 --> 00:03:08.04
are already set as inputs.
64
00:03:08.04 --> 00:03:10.08
If we open up the generative design studies
65
00:03:10.08 --> 00:03:13.07
by going to the generative design tab at the top
66
00:03:13.07 --> 00:03:16.09
and selecting create study,
67
00:03:16.09 --> 00:03:19.03
and then going to three box massing,
68
00:03:19.03 --> 00:03:22.00
we can see that these input sliders have shown up
69
00:03:22.00 --> 00:03:23.09
as the variables.
70
00:03:23.09 --> 00:03:26.03
And each of these sliders have been renamed,
71
00:03:26.03 --> 00:03:30.02
which is identified by these yellow tags.
72
00:03:30.02 --> 00:03:32.03
We can rename a node by right clicking it
73
00:03:32.03 --> 00:03:34.03
and selecting rename node.
74
00:03:34.03 --> 00:03:37.01
And then whatever we have here as the name will show up
75
00:03:37.01 --> 00:03:42.08
as the variable name in the dialogue.
76
00:03:42.08 --> 00:03:44.06
Outputs are similar to inputs
77
00:03:44.06 --> 00:03:47.08
in that we need to specify a node as an output.
78
00:03:47.08 --> 00:03:50.04
However, for outputs, these can only be nodes
79
00:03:50.04 --> 00:03:53.07
that result in a number value such as a watch node
80
00:03:53.07 --> 00:03:56.02
or a subtraction node, for example.
81
00:03:56.02 --> 00:03:58.01
To define a node as an output,
82
00:03:58.01 --> 00:04:01.09
we simply right click it and select is output.
83
00:04:01.09 --> 00:04:04.06
These can also be renamed too.
84
00:04:04.06 --> 00:04:06.09
In this script, there are two nodes as outputs
85
00:04:06.09 --> 00:04:08.04
which if we hover over,
86
00:04:08.04 --> 00:04:11.04
we can see was originally a watch node.
87
00:04:11.04 --> 00:04:17.05
If we open up the study again,
88
00:04:17.05 --> 00:04:19.07
we can see that those two nodes
89
00:04:19.07 --> 00:04:22.04
which are outputs have appeared as goals.
90
00:04:22.04 --> 00:04:25.01
We have floor area and surface area.
91
00:04:25.01 --> 00:04:28.03
Outputs are therefore used to indicate the metrics
92
00:04:28.03 --> 00:04:29.07
that have been calculated
93
00:04:29.07 --> 00:04:32.07
during the generative design process.
94
00:04:32.07 --> 00:04:35.08
You could think of these as the score of the design
95
00:04:35.08 --> 00:04:38.02
and for an optimization study,
96
00:04:38.02 --> 00:04:40.09
these are either maximized or minimized
97
00:04:40.09 --> 00:04:44.04
to allow the algorithm to find the best solutions.
98
00:04:44.04 --> 00:04:47.02
In this case, if we run the script,
99
00:04:47.02 --> 00:04:48.08
we can see two values
100
00:04:48.08 --> 00:04:51.00
which indicate the score of this design.
8058
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.