Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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

marc_wintermantelmarc_wintermantel Member Posts: 2 ✭✭

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

  • Caden_ArmstrongCaden_Armstrong Member Posts: 202 PRO

    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/

    www.smartbenchsoftware.com --- fs.place --- Renaissance
    Custom FeatureScript and Onshape Integrated Applications
Sign In or Register to comment.