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.

Get Assembly Mass Properties With API

duncan_abbotduncan_abbot Member Posts: 2
Hi, I can measure an assembly's mass properties with the GUI tool in the browser, but I need to be able to get these with the API like I would for a Parts Studio. Is this an available feature and/or is there a workaround? I've also not been able to hit the green checkmark in the mass measure tool popup in my assembly despite giving it the correct inputs with no errors.

Comments

  • alan_baljeualan_baljeu Member, User Group Leader Posts: 111 ✭✭
    Yes, there is one in PartStudios.  /partstudios/d/:did/[wvm]/:wvm/e/:eid/massproperties

    Or if you meant in Featurescript, you're looking for:

    evApproximateMassProperties (context is Context, arg is map) returns MassProperties


    In the UI, i believe the Green checkmark is disabled.  There is no way to "accept" mass properties measurements.
    Creating knowledge-driven design automation software, for molds, etc.
    www.virtualmold.com

  • kenn_sebesta167kenn_sebesta167 Member Posts: 56 ✭✭
    @alan_baljeu could you drop a link to where the `massproperties` value is documented in the API? It is being frustratingly hard to find.
Sign In or Register to comment.