smexportonshape (Simscape Multibody export) returns 429 "Too Many Requests" on translation API

md_didarul_alam699
md_didarul_alam699 Member Posts: 2 ✭

Hi all,

I'm trying to export an Onshape assembly to Simscape Multibody (MATLAB) using the smexportonshape function, and I'm consistently hitting a rate-limit error from the Onshape API.

Setup:

  • MATLAB R2025b, Simscape Multibody
  • Onshape assembly with 26 part instances (pistons, cylinders, arm/boom segments — a truck-mounted crane model)

Error message:
Error using smexportonshape_implementation
The server returned the status 429 with message "Too Many Requests" in response to the request to URL:
https://cad.onshape.com/api/partstudios/d/.../translations

What I've tried:

  • Waiting several minutes and retrying — same error
  • Testing with a completely different, unrelated Onshape document — same 429 error
  • This suggests it's an account-level or app-level quota, not specific to one assembly

Questions:

  1. Is there a daily/hourly quota on the Simscape Multibody Exporter app's translation API calls for free/personal Onshape accounts?
  2. Does an Onshape Education plan (e.g. through a university) have a higher quota for this?
  3. Is there a way to check my current quota/usage, or an expected reset time?

Any guidance would be appreciated — happy to share more details (account type, exact timestamps) if useful.

Thanks!

Answers

  • Daniel_Kane
    Daniel_Kane Member, Onshape Employees Posts: 35 image

    Hello - it sounds like you are running into rate limits on your account. This is not specific to the SimScape app, but calls made through it contribute to your account being rate-limited. More details here: https://onshape-public.github.io/docs/auth/limits/

    I manage partner relationships for Onshape and will work with the app developers to clearly communicate this to app users.