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.
Search
-
Re: Updating Variables through Python API
-
Re: Updating Variables through Python API
this worked for me: import requests # Get all of the variables in the Part Studio response = requests.get( "https://cad.onshape.com/api/variables/d/{}/{}/{}/e/{}/variables".format( DID, WVM, WID, EID ), auth=(API_ACCESS, API_SECRET), headers={ "Accept": "application/json;charset=UTF-8; qs=0.09", "Content-Type":… -
Re: Updating Variables through Python API
-
Updating Variables through Python API
Hi, I have started a project where I would like to do a GET to get the variables of a part, do a mathematical operation, and then POST the updated variables. I have gotten the GET and the mathematical operation, and am struggling to actually POST. My document is linked here. I have obtained the url from the Glassworks API…
4 results