docs

Onshape Setup

Note: Onshape integration for SharpSync is not currently supported for free versions. In order for SharpSync to work, you need to create custom properties in a company in Onshape. This is only possible with the Professional or Enterprise versions of Onshape. This is a limitation in Onshape

Onshape App Store Subscription

Setting up Onshape Datasource

Configure the authentication options

https://cad.onshape.com/api

you will have

https://{enterpriseName}.onshape.com/api

Mapping values to ERP

Mapping the URL to a field in the ERP

Onshape is an online datasource, so you can map the URL of the document to a field in the ERP.

To map an Onshape document URL to a property in the ERP do the following:

alt text

Primary View Href Mapping

Export Assembly or Part from Onshape

Troubleshooting

Cannot get properties

The following response in the network tab with a 500 statuscode

Request Method: GET
Status Code: 502 Bad Gateway

{
    "message": "Could not find the Onshape company that the user belongs to when loading the BOM"
}

This means that you’re attempting to use SharpSync with a free version. Free versions are not supported atm due to a limitation in Onshape that you cannot create custom properties (True at the time of writing this)

Cannot pull Onshape BOM

The following response in the network tab with a 502 statuscode

{
    "message": "Could not pull the bom from Onshape - request was Forbidden. Check that the document hostname/origin matches the datasource server hostname"
}

Let’s say the enterprise name is starkindustries.onshape.com .

Check: