Add part weight to drawing

Use this space to ask how to do whatever you're trying to use SolidWorks to do.
Uncle_Hairball
Posts: 191
Joined: Fri Mar 19, 2021 12:21 pm
Answers: 2
x 35
x 95

Add part weight to drawing

Unread post by Uncle_Hairball »

How can I add the part's weight to a note on my drawing? What is the correct parameter to use?
by AlexB » Mon Oct 04, 2021 2:31 pm
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?
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
Go to full post
User avatar
Lucas
Posts: 227
Joined: Tue Jun 15, 2021 3:46 am
Answers: 2
Location: Osaka, JP
x 171
x 169

Re: Add part weight to drawing

Unread post by Lucas »

I just know one way:
In the Part file -> File: Properties (add Name and Value in the list)
Save it and Open the Drawing
After placing the views -> Insert: Annotations: Note... (Link to Properties - on the Text Format area)
(Model found here and Property name: Weight)
Then place it.

You might want to create templates if you use it often
https://blogs.solidworks.com/tech/2016/ ... rmats.html
User avatar
DanPihlaja
Posts: 819
Joined: Thu Mar 11, 2021 9:33 am
Answers: 25
Location: Traverse City, MI
x 791
x 952

Re: Add part weight to drawing

Unread post by DanPihlaja »

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.
-Dan Pihlaja
Solidworks 2022 SP4

2 Corinthians 13:14
Uncle_Hairball
Posts: 191
Joined: Fri Mar 19, 2021 12:21 pm
Answers: 2
x 35
x 95

Re: Add part weight to drawing

Unread post by Uncle_Hairball »

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.
Uncle_Hairball
Posts: 191
Joined: Fri Mar 19, 2021 12:21 pm
Answers: 2
x 35
x 95

Re: Add part weight to drawing

Unread post by Uncle_Hairball »

Thanks for the Info., dpihlaja. It never would have occurred to me that the units would be a problem, but I guess I shouldn't be surprised.
MJuric
Posts: 1067
Joined: Mon Mar 08, 2021 3:21 pm
Answers: 1
x 31
x 873

Re: Add part weight to drawing

Unread post by MJuric »

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.
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.

I think that's what was being said up above.
Uncle_Hairball
Posts: 191
Joined: Fri Mar 19, 2021 12:21 pm
Answers: 2
x 35
x 95

Re: Add part weight to drawing

Unread post by Uncle_Hairball »

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?
User avatar
AlexB
Posts: 483
Joined: Thu Mar 18, 2021 1:38 pm
Answers: 27
x 256
x 432

Re: Add part weight to drawing

Unread post by AlexB »

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?
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
MJuric
Posts: 1067
Joined: Mon Mar 08, 2021 3:21 pm
Answers: 1
x 31
x 873

Re: Add part weight to drawing

Unread post by MJuric »

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.

You should be able to add that property and it will automatically evaluate. if you put in your part template it will always be there and always be calculated.

When you create a drawing you drag the note that you saved in your library and drop it on the view and done.

This is how we do all our weldment pieces and I don't manually tell SW to do anything.
User avatar
DanPihlaja
Posts: 819
Joined: Thu Mar 11, 2021 9:33 am
Answers: 25
Location: Traverse City, MI
x 791
x 952

Re: Add part weight to drawing

Unread post by DanPihlaja »

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.
-Dan Pihlaja
Solidworks 2022 SP4

2 Corinthians 13:14
User avatar
mattpeneguy
Posts: 1386
Joined: Tue Mar 09, 2021 11:14 am
Answers: 4
x 2489
x 1899

Re: Add part weight to drawing

Unread post by mattpeneguy »

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.
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.

Now I'm not arguing either way, just saying that there's an argument for both sides. It's not too terribly difficult to deal with for my workflow, but I can see it being a small inconvenience to a big headache for others with SW handling it either way.

But most importantly, the units should ALWAYS be included in the BOM when any unit shows. I'm not sure if that's the case, but it should be.
Uncle_Hairball
Posts: 191
Joined: Fri Mar 19, 2021 12:21 pm
Answers: 2
x 35
x 95

Re: Add part weight to drawing

Unread post by Uncle_Hairball »

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
Fantastic! Thanks very much. "SW-Mass" is what I was looking for.
Post Reply