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.

Show part mass on drawing

stuart_clark048stuart_clark048 Member Posts: 1 PRO
Is there a simple way to display the mass of a part and/or assembly in a drawing so that it remains a live link to the part studio or assembly?

Answers

  • konstantin_shiriazdanovkonstantin_shiriazdanov Member Posts: 890 ✭✭✭✭✭
    This is a bit a shame but there is no way :'(
  • john_mcclaryjohn_mcclary Member, Developers Posts: 1,760 PRO
    edited May 8
    There is a way, but you will need to abandon the material library built into Onshape, and use a custom featurescript that stores the result into a custom property.

    Being a pro user, it is within your grasp. Free users will need to store the result in an existing property, like title1 or something

    Here's my implementation, although it is combined with part numbering and colors, but you should be able to delete most of that out.
    https://cad.onshape.com/documents/f7a56fbf62f83047ff5224f6/w/1d122164d0c55df35ec0b460/e/7785c5c58d58ecf15e9a9a2b

    Be wary, if you ever modify the material of the part with Onshape's built in function, then that will override any featurescript and you will get a blank result in your property. The only way to fix it, is to force a change to the internal ID of the part. Usually by delete/recreate a feature on the tree that has created the part.
Sign In or Register to comment.