# GH_DocumentAssociations class

Namespace: [Grasshopper.Kernel](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.kernel.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public class GH_DocumentAssociations
```

## Methods

- [Associate](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documentassociations/associate.md): Add an association between a Rhino and a Grasshopper file. If a similar association already exists, it will be overwritten. This function reads and writes to the disk, it is SLOW. Only call it when you KNOW something changed.
- [GetGrasshopperAssociations](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documentassociations/getgrasshopperassociations.md): Find all the Grasshopper ghx files that have been associated with a given Rhino file.
- [GetRhinoAssociations](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-documentassociations/getrhinoassociations.md): Find all the Rhino 3dm files that have been associated with a given Grasshopper file.
