Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- 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.
API: Determining if there was a regeneration failure

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
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 thefeatureId
and thefeatureStatus
.Features with issues will have afeatureStatus
of ERROR.