GH_DocumentAssociations

References

Methods

Associate

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

GetGrasshopperAssociations

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

GetRhinoAssociations

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