api
Discussion List
-
Getting starting in C#
Since I last was here, I figured out how to get the API keys. Now I have downloaded from git OnshapeWindowsSample. I set the environment variables as instructed here: https://github.com/onshape-public/app-windows-sample (Open question: the image says partner.dev.onshape.com, but the text says cad.onshape.com. Which is…
-
Transforming Mates around arbitrary points in assembly.
We have been playing with making api calls to onshape assembly (occurrence transforms) and had a bit of a success in transforming parts around origin. In our use case we have multiple Revolute Mates that we want to turn to specific angles through api calls. We can do it through occurrence transforms but the parts have to…
-
How to export sketch as DXF using the API
Hi, I am looking to use the API to hook up a python script to optimize some electric motor geometry. I need to run some simulations on a 2D DXF output of the geometry. How can I use the API to export a sketch to .DXF? I found some endpoints that facilitate STL and Parasolid export, and I found some stuff to do with…
-
Copy and Rename workspace using API
I am wondering how easy (or if it is even possible) to copy a workspace and rename it using the API. I know this is available via interface, but want to automate making several copies of the workspace (1 for each of my students) Any guidance / example would be great.
-
python api + parametric study
Hi, So far the python api works fine for me. I managed to modify the geometry, evaluate featureScripts, and export the geometry in STL format. I also ran a small parametric study with no problems. At this point, I want to run the same parametric study but concurrently, that is, I want to launch many python scripts at the…
-
What is the OAUTH authorization code lifetime ?
Hi,I am prototyping an app using the OnShape Rest API. The authorization code seems to expire shortly after it is issued, but what is its exact lifetime ?