Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

Options

API: Determining if there was a regeneration failure

robert_chiodirobert_chiodi Member Posts: 11

Hi!
I am working on creating an integration with Onshape via the API. I have looked pretty thoroughly through the API Explorer and tried searching the internet, but I cannot seem to find what call is necessary to determine if a regeneration has failed. In the integration, we manipulate variable studio tables, which can be easy to put into a bad state that is non-realizable.

So the crux of the question is: What is the fastest way in the API to determine if there is a generation issue in a Part Studio or Assembly? Currently, we do not care in which part the issue is or what it is, just a binary success/failure criterion.

Thanks!

Comments

  • Paul_J_PremakumarPaul_J_Premakumar Member, Onshape Employees Posts: 227

    In a part studio, you can get the list of features using /partstudios/d/{did}/{wvm}/{wvmid}/e/{eid}/features endpoint and check the featureStates in the response. This will give you the featureId and the featureStatus.Features with issues will have a featureStatus of ERROR.

  • robert_chiodirobert_chiodi Member Posts: 11

    Thanks, that does indeed work! If I could make a request, it'd be nice if there was a cheaper (less severely rate-limited and quicker) endpoint to just get the featureStatus along with the feature names associated with the node ids.

Sign In or Register to comment.