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.
API | PartStudio | Mass Properties
Martyn_Gierlicki
Member, csevp Posts: 3 PRO
Hi all -
I am using the Glassworks API Explorer to pull the mass properties from a part studio (https://cad.onshape.com/glassworks/explorer/#/PartStudio/getPartStudioMassProperties).
I am pulling the data into Excel Power Query via the generated Request URL from the glasswork API tool.
Now - my part studio contains muliple configurations which contain various quantities of parts. I know I can hard call a specific configuration into the URL to GET the details of that specific part studio configuration but is it possible to generate a single request URL for all of the configuartions within a part studio.
I have in the region of 80 configurations so dont particularly want to have to create 80 URL's and 80 power queries.
Thanks in advance.
I am using the Glassworks API Explorer to pull the mass properties from a part studio (https://cad.onshape.com/glassworks/explorer/#/PartStudio/getPartStudioMassProperties).
I am pulling the data into Excel Power Query via the generated Request URL from the glasswork API tool.
Now - my part studio contains muliple configurations which contain various quantities of parts. I know I can hard call a specific configuration into the URL to GET the details of that specific part studio configuration but is it possible to generate a single request URL for all of the configuartions within a part studio.
I have in the region of 80 configurations so dont particularly want to have to create 80 URL's and 80 power queries.
Thanks in advance.
Tagged:
0
Comments
You can use the endpoint:
/elements/.../configuration
to get a list all of the parameters of a configuration, and then use the allowed values to generate a list of all of the configurations.
For inputs like length, these are obviously infinitely variable, so you will need to determine a method of iterating across that value, or leaving it as a default.
Custom FeatureScript and Onshape Integrated Applications