# Onshape Setup

> Connect your Onshape account to syn.bike and load a bike into the syn.bike panel inside an Onshape document.

In Onshape, syn.bike runs as a panel inside your document. Load a bike into the panel and sync its values into the document's `syn Variables` Variable Studio.

![The syn.bike panel in Onshape, showing the Auto Sync toggle and sync icon in the top bar above the Plot, Layout and Geometry tabs](https://syn.bike/images/docs/cad-sync-onshape-panel-light.png)

## Connect Your Onshape Account

The connection belongs to the syn.bike account you are signed in with.

1. Launch the syn.bike app from Onshape. Your browser opens a syn.bike page titled **Connect Onshape**, after the sign-in page if you are not signed in. It shows which syn.bike account will be connected.
2. Click **Connect Onshape Account**, and approve the access Onshape asks for, which lets syn.bike read and write your documents.
3. When the page reads **Account Linked Successfully**, click **Return to Onshape**.

Finish the approval within 10 minutes of clicking the button. If it runs out, or you decline, the page reads **Connection Failed** with a **Try Again** button.

## Load a Bike in Onshape

When no bike is loaded, the panel shows **Load Points from Model**. Pick a database tab, fill in **Brand**, **Model Year**, **Model Name** and **Version**, and click **Load**. The folder icon opens a bike file from your computer instead. The panel loads existing bikes only, so create new ones in the main app.

The panel has three tabs: **Plot** shows the kinematic charts, **Layout** holds the same sections as the main app's **Layout** tab without **Bike Info** and **Access Controls and Export**, and **Geometry** holds the geometry table.

Undo is `Ctrl+Z` and redo is `Ctrl+Y`. The menu at the top left has **Switch Bike** (`Ctrl+O`) and **Save Bike** (`Ctrl+S`). Edits you make in the panel sync to Onshape without being saved, so save when you want the main app and your team to see them.

## If an Onshape Sync Fails

If a sync asks you to authorize the Onshape plugin, check that you are signed in to the syn.bike account you connected, then go through [Connect Your Onshape Account](#connect-your-onshape-account) again. The sync icon is disabled when the panel was not opened from an Onshape document. For what a sync message means, see [Messages](https://syn.bike/docs/messages.md).

## Sync and Draw in Onshape

Syncing and drawing are covered on the [CAD Sync](https://syn.bike/docs/cad-sync/overview.md) page:

- [Sync to the Variable Studio](https://syn.bike/docs/cad-sync/overview.md#sync-to-the-variable-studio), including **Auto Sync**.
- [Use the Variables in Onshape](https://syn.bike/docs/cad-sync/overview.md#use-the-variables-in-onshape).
- [Draw in Onshape](https://syn.bike/docs/cad-sync/overview.md#draw-in-onshape), for **Draw Linkage Points**.
- [Geometry Variables](https://syn.bike/docs/cad-sync/overview.md#geometry-variables) and the other variable lists.
