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: Update a configuration variable or a normal variable with the API?
Here are the docs for our /variables APIs: https://cad.onshape.com/glassworks/explorer/#/Variables In a Part Studio, variables are explicitly defined by features. Variable Studios are very similar to Part Studios underneath (at the time of writing), but we treat those variables differently from a UI and API perspective.… -
Re: Update a configuration variable or a normal variable with the API?
-
Update a configuration variable or a normal variable with the API?
Hi there! New to CAD, programmer by trade. Trying to help a friend automate some things using the OnShape API and could really use some guidance. I've got a very simple document: https://cad.onshape.com/documents/9572b13e2c65ea469fb4ed48/w/17787c7fb46478b1f546c9ae/e/9b59ef337a4bba9c765a1cfd I want to be able to use the API… -
Re: Update a configuration variable or a normal variable with the API?
Sorry for the late reply-- This is truly SO helpful, thank you! I was able to get this working for modifying constraints of a sketch.. my user made it clear they want to be able to update a variable. Are variables features too? There is a variable API but.. it doesn't seem to want to update variables. Thanks again for all… -
Re: Update a configuration variable or a normal variable with the API?
-
Re: Update a configuration variable or a normal variable with the API?
Hi Anton, I was trying to receive variables but I haven't been able to do so. I'm not finding it to be so simple. Could some specific steps be made available to achieve changing a part studio variable? So far I have tried even just posting the example cube from the doumentation, but this didn't get a response. -
Re: Update a configuration variable or a normal variable with the API?
Hi Anton, I was trying to receive variables but I haven't been able to do so. I'm not finding it to be so simple. Could some specific steps be made available to achieve changing a part studio variable? So far I have tried even just posting the example cube from the doumentation, but this didn't get a response from the API. -
Re: Update a configuration variable or a normal variable with the API?
I am actually working on a product that does exactly this, if you are interested in trying out the closed beta, send me a PM. To answer the actual question, when you run API calls against a part studio, the configuration is an input parameter., If you do an evaluate feature script to get the value of a variable (or get… -
Re: Update a configuration variable or a normal variable with the API?
Just to clarify: if you want to actually watch the model update on your screen, I don't think you can use configurations. As Anton pointed out, you can make an API call and pass configuration variables in the query string. You'll get back a response, based on the configuration, but you won't see the model update on your…
9 results