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: 2 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: 1,221 ✭✭✭✭✭
    This is a bit a shame but there is no way :'(
  • john_mcclaryjohn_mcclary Member, Developers Posts: 3,939 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.
  • Carolyn_MyersCarolyn_Myers Member Posts: 3

    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!

  • Carolyn_MyersCarolyn_Myers Member Posts: 3

    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_pestyeric_pesty Member Posts: 1,984 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!):

  • glen_dewsburyglen_dewsbury Member Posts: 872 ✭✭✭✭
    edited 1:53AM

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

  • eric_pestyeric_pesty Member Posts: 1,984 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…

Sign In or Register to comment.