# Sync Grasshopper File

![](https://894783789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPHXQ1I3gb93zpLrLZf%2Fuploads%2Fgit-blob-66faeb128f4c99f63b326d686d67e5c064a7dee6%2FSync_Grasshopper_File.png?alt=media)

![](https://894783789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LPHXQ1I3gb93zpLrLZf%2Fuploads%2Fgit-blob-b6686a397ac70534fe315885da1208d6e422eff6%2FSync_Grasshopper_File.png?alt=media) - [\[source code\]](https://github.com/ladybug-tools/ladybug-grasshopper/blob/master/ladybug_grasshopper/src/LB%20Sync%20Grasshopper%20File.py)

Sync the Ladybug Tools components in a Grasshopper file with the version of the components that currently exist in the Grasshopper toolbar.

This is useful for updating old Grasshopper definitions to newer plugin versions. However, this component will sync components regardless of version number or date, even if the components in the toolbar are of an older version than those currently on the Grasshopper canvass.

Any components that cannot be updated automatically (because their inputs or outputs have changed) will be circled in red and should be replaced manually.

### Inputs

* **sync \[Required]**

Set to "True" to have this component to search through the current Grasshopper file and sync all Ladybug Tools components with the version in the Grasshopper toolbar.

### Outputs

* **report**

Errors, warnings, etc.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ladybug.tools/ladybug-primer/components/5_version/sync_grasshopper_file.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
