Learn how to create a
Generative Design study using
Dynamo for Revit and a sample study type.
This method of using
Generative Design does not require a subscription to the AEC Collection or other
qualifiers. It only requires access to
Revit.
Objective: Create a study using the Stepped Grid Object Placement study type and a sample
Revit model.
Steps
- Open and prepare the model in
Revit.
- Use
Dynamo to open the study type.
- Create a copy in a different location.
- Arrange the
Dynamo and
Revit windows.
- Determine whether
Revit elements are required.
- Select
Revit elements.
- Run the study type to validate it.
- Create the study.
Use
Dynamo to open the study type
- In
Revit, click Manage tabVisual Programming panelDynamo
.
- In
Dynamo, open the study type:
- In the
Dynamo window, under Files, click Open.
- Navigate to this location:
%PROGRAMDATA%\Autodesk\AECGD\Revit\Samples <release>\
- Open the folder for the desired
language and locale, such as en-US for English-United States or fr-FR for French-France.
- Select
Stepped Grid Object Placement.dyn, and click Open.
Note: If you can't find the study type in that location, you can download it from here:
Stepped Grid Object Placement study type. The ZIP file contains the DYN file and its Dependencies folder. Unzip (extract) its contents to a folder on your computer. Then proceed with the next step.
Create a copy of the study type in a different location
The sample study types are read-only. Before using Stepped Grid Object Placement to create a study using
Dynamo for Revit, you need to create a copy of it in another folder.
- In
Dynamo, click FileSave As.
- Navigate to another folder, enter a new file name, and click Save.
A message displays titled
Warning: Dependencies folder required.
- Click OK in the message box.
You can ignore this warning for now. A Dependencies folder is created later when you
create the study.
Arrange the
Dynamo and
Revit windows
You want to see both windows at the same time.
- Move and resize the windows on your monitor so you can see both
Dynamo and
Revit.
- To see the entire study type, zoom and pan using the middle mouse button or the Zoom
and Pan
controls.
Note: If needed, click the button
in the
workspace to see the
graph view instead of the 3D preview.
- Colored boxes group the nodes into logical functions or steps. On the left, the gray box provides documentation. Sample groups describe how the different colors are used in the graph.
Determine whether
Revit elements are required
In
Dynamo, zoom in to the pink boxes on the left to find
Revit selection nodes.
The Stepped Grid Object Placement study type has two selection nodes: Select family instance, and Select room.
The remaining pink boxes indicate other types of inputs; you'll specify those inputs later using the Define Study dialog.
Select
Revit elements
Before you can create a study using
Dynamo, in the model you must select the room (Lounge 223) and the family instance (Table-Dining Round with Chairs).
- Select the room as follows:
- In
Dynamo, for the Select room node, right-click the node's title bar and clear the check mark for Is Input.
- Click the Select tab of the node.
- In
Revit, select the room for Lounge 223.
- In
Dynamo, confirm that the selection node displays an element ID. This is the ID of the room.
- Select the table instance as follows:
- In
Dynamo, for the Select family instance node, right-click the node's title bar and clear the check mark for Is Input.
- Click the Select tab of the node.
- In
Revit, select the instance for Table-Dining Round with Chairs.
- In
Dynamo, confirm that the selection node displays the element ID.
Run the study type to validate it
- In
Dynamo, if the Graph Status tab does not display in the right pane, on the menu bar click Extensions Show Graph Status.
- In the Run Settings bar at the bottom of the
Dynamo window, click Run. (The keyboard shortcut is F5.) If the run settings are set to Automatic, the graph will run automatically.
- If any issues display in the Graph Status tab, review them. For each issue, click its links to jump to those spots in the graph where adjustments are needed.
See
Troubleshoot: Errors for
Generative Design in
Dynamo.
- After addressing issues, re-run the graph until all issues are resolved.
- Save the graph. The graph (DYN file) is updated with the changes. A Dependencies folder is also created in the same location as the DYN file.
Create the study
After running the study type to validate it and saving it in
Dynamo, create the study to generate multiple outcomes.
- On the menu bar, click Generative DesignCreate Study.
Wait a moment for the Create Study dialog to open. It may open in a different part of the screen.
- In the Create Study dialog, for Choose Folder, select the folder where the current study type resides. Then select the study type.
If the folder doesn't appear in the Choose Folder list,
add it. Then select it from the Choose Folder drop-down list, and select the study type.
- In the Define Study dialog,
complete the fields and click Generate.
The outcomes display in the
Explore Outcomes dialog.
Now you can do the following:
- Explore more outcomes of the study. Examine their details.
- Create a new study using different criteria in the Define Study dialog.
- Integrate a selected outcome into the
Revit model.