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.
Onshpe API: How to export a Part Studio to a Step file
zhou_shengdi
Member Posts: 1 EDU
Hello, Team.
I want to get and export a step file from the Onshape Server using the Onshape API through a browser. What should I do? Thanks.
I want to get and export a step file from the Onshape Server using the Onshape API through a browser. What should I do? Thanks.
Tagged:
0
Answers
-
A Part Studio is a container containing several individual parts. ( 0 .. n )
I don't know Onshape API, maybe you are thinking of Featurescript ?0 -
You can read the Onshape API documentation here https://onshape-public.github.io/docs/
You only said that you want to export a step file, but is that of a Part, part studio, assembly?
Part studios have an API endpoint for translation
https://cad.onshape.com/glassworks/explorer/#/PartStudio/createPartStudioTranslation
Which is also covered in the documentation
https://onshape-public.github.io/docs/translation/
0 -
Hi,Thank you for your reply, @caden_armstrong!I tried running the translation for my part studio, and that worked fine. However, I have multiple parts in my part studio and would like to have them exported as one part per STEP file. Does anyone know how to accomplish this?0
-
If I'm not mistaken, I think there is an end point to query all parts in a part studio. Then you can iterate over the results calling the endpoint for a specific part ids for each part in the query. Maybe there is a param in the endpoint you used to do what you what all in one call, not sure though.0


