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 access to massproperties of a face

Hello,
I'm trying to get the massproperties of a face over the API i.e. basically the values you can see in the screenshot:
While getting the massproperties from a part or even a whole partstudio is working using either
https://cad.onshape.com/glassworks/explorer/#/Part/getMassProperties
or
https://cad.onshape.com/glassworks/explorer/#/PartStudio/getPartStudioMassProperties
I'm unclear how to get the 2D properties of a face as shown in the screenshot.
Any support is very welcomed!
Regards,
Marc
Comments
You could use the evaluate featurescript endpoint to get the information:
https://cad.onshape.com/glassworks/explorer/#/PartStudio/evalFeatureScript
https://onshape-public.github.io/docs/api-adv/fs/
Custom FeatureScript and Onshape Integrated Applications