# DocumentDependencies class

Namespace: [Grasshopper2.Doc](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.doc.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class DocumentDependencies
```

A class for maintaining and harvesting data from document dependencies. For example when this document imports data from another document.

## Properties

- [Document](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.documentdependencies/document.md): Gets the document this instance is associated with.
- [HasDependencies](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.documentdependencies/hasdependencies.md): Gets whether the document has dependencies on other documents.

## Methods

- [CreateGraph](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.documentdependencies/creategraph.md): Create a graph of the entire dependency hierarchy starting from this document. This will load but not solve any of the files.
- [DataFileSources](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.documentdependencies/datafilesources.md): (static) Parse a potential file dependency and return an array of strings representing the available data.
- [PickDataFile](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.documentdependencies/pickdatafile.md): (static) Ask the user to pick either a *.ghz or a *.ghdata file.
- [PickSourceFilter](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.documentdependencies/picksourcefilter.md): (static) Given a file, ask the user to pick a source filter. Depending on the file format, this may or may not show modal UI on the screen.
- [ResolveDependency](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.documentdependencies/resolvedependency.md): Resolve a specific dependency. If the implicated file hasn't been cached yet, it will be loaded, solved and cached. Hence, this method may take a long time.
