Add part weight to drawing
Posted: Fri Oct 01, 2021 5:32 pm
How can I add the part's weight to a note on my drawing? What is the correct parameter to use?
You don't have to add it manually. Make a note that calls the weight property and save it in your library. Place that note on the view that contains the part and it pulls the weight property.Uncle_Hairball wrote: ↑Mon Oct 04, 2021 12:46 pm Thanks for the recommendation, Lucas. I was hoping to be able to access the weight calculated by Solidworks for the part instead of having to add it manually.
The "Weight" custom property shown in this image automatically uses your part weight from its mass properties for "SW-Mass". Place that in your part/assy document.Uncle_Hairball wrote: ↑Mon Oct 04, 2021 1:33 pm If I add a weight property to the custom properties of the part, I will have to manually command SW to calculate the weight and manually add the value to the custom property. I would like SW to extract the weight without my intervention and make it appear on the drawing.
Is this possible? If so, which property do I need to use?
Pretty much what AlexB said. I've never run into something that wasn't a bug where you had to manually command SW to calculate a custom property.Uncle_Hairball wrote: ↑Mon Oct 04, 2021 1:33 pm If I add a weight property to the custom properties of the part, I will have to manually command SW to calculate the weight and manually add the value to the custom property. I would like SW to extract the weight without my intervention and make it appear on the drawing.
Is this possible? If so, which property do I need to use?
If you update your template to have the note already in it, it will update as soon as you add a part view.Uncle_Hairball wrote: ↑Mon Oct 04, 2021 1:33 pm If I add a weight property to the custom properties of the part, I will have to manually command SW to calculate the weight and manually add the value to the custom property. I would like SW to extract the weight without my intervention and make it appear on the drawing.
Is this possible? If so, which property do I need to use?
Sooooo, is this a bug or intended functionality?... Think of it this way, say you have some metric fasteners in your BOM and want their weight (or dimensions) in Metric... If you've got all this at the part level, it'll show how you want in the BOM if the part properties carry through.dpihlaja wrote: ↑Mon Oct 04, 2021 8:41 am Please be aware of the following:
The weight that is displayed on the drawing will be in the units that are defined at the part level. NOT the units that are defined at the drawing level.
Example: Your part file is set to Metric and the unit for weight is grams.
Your drawing is set to English units and the unit for weight is pounds.
When you display the weight of the part on the drawing, it will display in grams.
This is even true if you display the weight on a BOM. The units displayed will be the units for each part. So you might have some that are displayed in pounds and some in grams. You have to painstakingly go through each part in the entire tree to make sure that the units are all set the same.
At least, this is true up to SW 2018 SP5. They may have fixed the problem by SW 2020, but I am not sure.
Fantastic! Thanks very much. "SW-Mass" is what I was looking for.AlexB wrote: ↑Mon Oct 04, 2021 2:31 pm The "Weight" custom property shown in this image automatically uses your part weight from its mass properties for "SW-Mass". Place that in your part/assy document.
image.png
On your drawing, your note annotation will need to contain a link to the property called "Weight". You can manually type it...
image.png
Or, you could follow these steps and insert it into the note yourself
image.png