Graph Dependencies
To function in Dynamo Player, a Dynamo graph may require certain dependencies, such as packages, custom nodes, or external files. You can examine each graph’s dependencies in Player through the Graph Dependencies dialog. This dialog provides a quick way to see which packages and other dependencies your graph needs in order to run properly, and it enables you to identify missing dependencies, which you can install in Dynamo.
To access the Graph Dependencies dialog
Go to the Options menu in Dynamo Player and select Graph Dependencies. If the graph you are trying to run in Player is missing any dependencies, you will see a warning near the bottom of the Player application. You can also click this warning to open the Graph Dependencies dialog.
Using the Graph Dependencies dialog
If the graph you have open in Dynamo Player relies on any dependencies, they will be listed in the Graph Dependencies dialog, sorted under headers:
- Packages: Collections of custom nodes that extend Dynamo's functionality.
- Local Definitions: Dynamo-specific files corresponding to local custom nodes and local packages.
- External Files: External documents in the graph space, such as images or text files.
In addition to a name and version, each dependency is accompanied by an icon.
- A checkmark means that the dependency is installed.
- An X means that the dependency is missing and needs to be installed in Dynamo.
- A warning icon means that there is a version mismatch in the installed dependency. The graph may still run, but if there are issues, try installing the correct dependency version in Dynamo.
Installing missing dependencies
The Graph Dependencies dialog provides a simple way to view dependencies without having to open Dynamo. Missing dependencies can be installed in Dynamo. If dependencies are missing, the dialog will include a Fix in Dynamo button to open Dynamo and install the missing dependencies in the Workspace References extension. You can also access this extension from Dynamo by going to Extensions > Show Workspace References.
Potential ways to address missing dependencies include:
- Missing package or version mismatch: In the Dynamo Workspace References extension, click Install Specified Version and accept the installation. Only install known packages that you trust.
- Missing external file or local definition: Add the missing file in the folder that hosts the Dynamo graph.
After the missing dependencies have been resolved, save the graph in Dynamo, and the Graph Dependencies dialog will refresh to show the updated dependencies.