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

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_shiriazdanov
    konstantin_shiriazdanov Posts: 1,221 ✭✭✭✭✭
    This is a bit a shame but there is no way :'(
  • john_mcclary
    john_mcclary Posts: 4,095 PRO
    edited May 2019
    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.
  • I am a new OS user (Professional license), and as far as I can see this is still not possible without scads of code. Am I missing something or is it still not possible to bring that very basic known part parameter (mass) into a note (whether in a drawing or in a sketch)? Actually I'm not seeing how to put any parameters in sketch text. I'd appreciate help from people who know more about the program. Thank you!

  • I am a new OS user (Professional license), and as far as I can see this is still not possible without scads of code. Am I missing something or is it still not possible to bring that very basic known part parameter (mass) into a note (whether in a drawing or in a sketch)? Actually I'm not seeing how to put any parameters in sketch text. I'd appreciate help from people who know more about the program. Thank you!

  • eric_pesty
    eric_pesty Posts: 2,851 PRO

    @Carolyn_Myers

    You can definitely do it from a callout on a drawing (or a note using the "insert sheet reference property"), not sure about a "sketch" though (but not sure what you would do with it in a sketch!):

    image.png
  • glen_dewsbury
    glen_dewsbury Posts: 1,368 PRO
    edited January 2025

    The note will give mass of assembly and call out will give mass of part.

    image.png
  • eric_pesty
    eric_pesty Posts: 2,851 PRO

    @glen_dewsbury
    Thanks for clarifying that, I just grabbed some random doc I had lying around. If the drawing only had a part on it then the note would display the mass of the part.

    For the sketch text, you can right and "convert to expression" in the text box, however "mass" isn't available as a property in the part studio environment so it's not directly helpful…

  • glen_dewsbury
    glen_dewsbury Posts: 1,368 PRO

    The original question threw me off. I've so used to using this since I made first drawing formats, I don't think about it much any more. Long time ago! (? 2016)

    Still waiting for dimensional able C of G symbol without work arounds for aircraft outlines. Would be good for seeing dimensions change quickly and testing new equipment affects.