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.
python
Discussion List
-
accesing a part changing its parameters and exporting it using python
Hello, I have seen a few years ago, people using python, and accessing to one of their files, changing the configuration and getting back the exported file. I need to do a parametric study of a geometry and i would love to be able to do this but did not find any good knowledge source for doing this. someone has an updated…
-
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:…
-
How does the createTranslation API work?
Hi, I'm trying to execute an API call to create a translation for my .step file to create a Single Part Studio in a new a tab of the document from Django backend. Unfortunately there is not much documentation for this call, the only thing explaining how to do it I've found here and it says the following:"The file is…
-
OnShapePy - a python package for OnShape
Hello all, About a month ago I set out to build a general purpose OnShape python package, OnShapePy. Today I have the first MVP launched and available to install through pip. The documentation is available here. The goal is to unlock the vast Python scientific libraries to OnShape parts. At AguaClara, we will be using…
-
Python assembly API -- Creating a mate connector on existing geometry
I am using the python client API to create a mate connector on an existing assembly. The idea is to create a mate connector on an existing geometry. Using the API explorer I could find the body content for a message for the "add feature" function (adding a mate connector on the centroid of the geometry "JKW" belonging to…
-
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…