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.


Rest API - Fix parts in assemblies?

Alex_KempenAlex_Kempen Member Posts: 244 EDU
I'm trying to see if there's a way to fix occurrences in assemblies using the REST api. Whether a given occurrence is fixed can be seen using the GET assemblies endpoint, but I've yet to find an endpoint which allows me to actually manipulate this property.

I've also been struggling to use the assemblies occurencetransforms endpoint. In particular, the schema for an occurrence is:
    {<br>      "btType": "string",<br>      "fullPathAsString": "string",<br>      "headInstanceId": "string",<br>      "occurrenceWithoutHead": "string",<br>      "occurrenceWithoutTail": "string",<br>      "parent": "string",<br>      "path": [<br>        "string"<br>      ],<br>      "rootOccurrence": true,<br>      "tailInstanceId": "string"<br>    }
I've tried passing a valid path, and Onshape accepts the request, but nothing happens in the assembly. It seems like some set of the other options are necessary, but I'm struggling to see what values would apply to the other parameters.

Any insight is appreciated.
CS Student at UT Dallas
Check out my FeatureScripts here:

Sign In or Register to comment.