Вы находитесь на странице: 1из 1

Once you have selected elements or system family types, you can extract specific parameter values

from them. With element instances selected, you can extract instance parameters. With a system
family type selected, you can extract type parameters. In this exercise, all of the walls have been
selected in the All Elements of Type node. Additionally, a single wall has been selected in the Select
Model Element node, and a wall type has been selected in the Wall Types node. To extract a
parameter, you need an Element.GetParameterValueByName node. In the node Library, expand
Revit > Elements > Element. Next, click GetParameterValueByName to place the node on the
canvas. The Element.GetParameterValueByName node has two inputs: element and
parameterName. The element input has some flexibility. For example, you can input a single
element instance or multiple instances, and then extract an instance parameter. Or, you can input a
system family type and extract a type parameter. Take a look at each scenario. To extract an
instance parameter, you can use the output of a node that has an element instance or instances
selected. Connect the elements output of the All Elements of Type node to the element input.Next,
to specify the parameterName input, you need a String node or a Code Block. In the node Library,
search "string" and then click String in the list to add the node to the workspace. Connect the output
of the String node to the parameterName input. Once you do, you can enter an instance parameter
name in the String node to extract that parameter. For example, enter "Length" into the String
node. When the drop-down in the Execution Bar is set to Automatic, you can simply click in the
canvas after you enter the text in order to run the graph. To see the parameters that have been
extracted, pin the output of the GetParameterValueByName node. Since the input was a list of walls,
the output is a list of instance parameters in this case, the Length parameter. Now you have a list
of the lengths for each wall in the current Revit project. In order to extract an instance parameter
from a single element, you can connect the Element output from the Select Model Element node to
the element input on the get parameter node. The Select Model Element node has a single wall
selected, so the output is the Length value for that wall instance. Finally, you can use the
GetParameterValueByName node to extract a type parameter. In order to extract a type parameter,
you must input a system family type. In Dynamo, you are limited as to which system family types can
be selected. For example, in the node Library, under Revit, expand Selection. There are only two
nodes related to system family model elements: Floor Types and Wall Types. In this exercise, the
Wall Types node is used to select a wall type in the current Revit project.You can connect the Wall
Type output from the Wall Types node to the element input, even though they do not seem to
match. After you do, you need to enter a type parameter name in the String node. For this example,
enter "Width" to extract the Width type property value. To extract a type parameter from other
system families, such as roofs, select RoofType in the Element Types node. Then you can extract
the specific type from the list of all types that is output from the All Elements of Type node. Keep in
mind that the GetParameterValueByName node is very flexible and allows you to extract instance or
type parameters.