python-client
Discussion List
-
API rollbackBarIndex functionality
Hi, I'm trying to output the feature tree from a part studio via python - specifically via onshape-client.client.Client.api_client.request(…) (here) With a standard request, I can output the appropriate response json via the link:…
-
Python Notebooks API Playground
Hello! The PTC Education team has started to build out a library of snippets to help anyone get started with Onshape's RESP API using the python-client. This Github repo has some documentation on getting started as well as some example apps made in Google Colab. Here is a link to the main library of snippets. We've found…
-
Geometric Variants using API, onshape-client
@ethan_keller924 I am finally trying to get back to this project we started about a year ago! https://forum.onshape.com/discussion/11860/geometric-variants-derivatives-using-onshapepy-api I was trying to get familiar with the onshape-client repo., but I am afraid I may be a little rusty. :sweat_smile: Our code accesses a…
-
Using API, onshape_client and OAuth
Hello, How do you properly generate a token for authorization? When I create a client and try to read an access token, the access_token variable returns blank Code; # modules from onshape_client import OnshapeElement, Client # variables config_filename = '.onshape_client_config.yaml' did = '4106f8fea9cf4607edeba1db' wid =…
-
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…
-
Geometric Variants/Derivatives using Onshapepy API
Hello, A few weeks ago I posted a few questions regarding the usage of onshapepy. Apparently some changes had been made and now the API is/will-soon-be deprecated. I was still able to get my program working and now I am ready to share. I am hoping to find interest and perhaps some feedback! I will continue to develop the…
-
Python API: 401 Unauthorised when include_mate_connectors set to true in get_assembly_def arguments
https://github.com/onshape-public/python-client/blob/master/docs/AssembliesApi.md#get_assembly_definition ^ I've been using the above code to get the assembly definition but when I set include_mate_connectors in get_assembly_definition call I get a 401 error. However it works fine if I remove them. Wondering if anyone…