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.
Configurations API endpoint
Ace_Caoile
Member Posts: 10 PRO
Hi All,
I have a Partstudio that has several configurations (A, B, C, D, etc…).
When I use the below endpoint.
https://cad.onshape.com/api/v13/elements/d/{did}/w/{wid}/e/{eid}/configuration
It gives me all the available configurations which I can use to construct my next API calls, however, it always defaults to Configuration A, even though I got Configuration B loaded in my current workspace.
Is there a way to know which configuration is currently loaded in the workspace? Because I'm trying to avoid asking my user which configuration do they want to use in the app when it's already obvious that they want to load whatever configuration they got currently loaded on the workspace.
Thanks in advance
Comments
https://onshape-public.github.io/docs/app-dev/extensions/
To get the users current configuration, you need to add {$configuration} to your action URL in your app.
Experts in Onshape Automation - Custom Features and Integrated Applications
@Caden_Armstrong Solid!.. thanks sir!