GH_DocumentAssociations

References

Methods

Associate

#
public void Associate(string rhinoFile, string grasshopperFile)
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.
rhinoFile (string)Path to Rhino 3dm file.
grasshopperFile (string)Path to Grasshopper ghx or gh file.

GetGrasshopperAssociations

#
public List<string> GetGrasshopperAssociations(string rhinoFile)
Find all the Grasshopper ghx files that have been associated with a given Rhino file.
rhinoFile (string)Rhino file path.
A list of files, ordered chronologically (most recent association first)

GetRhinoAssociations

#
public List<string> GetRhinoAssociations(string grasshopperFile)
Find all the Rhino 3dm files that have been associated with a given Grasshopper file.
grasshopperFile (string)Grasshopper file path.
A list of files, ordered chronologically (most recent association first)