Weight of a part or assembly in a note on a PEM

 Hello everyone.

A problem that seems simple to me but that I can't solve requires your enlightenment.

How to display the weight of a part or assembly in a note on a MEP.

This part or assembly does not have a custom property.

I'm working on SW2021

Hello Clement, 

The easiest way is to create this custom property

Otherwise here is a clue for the solidworks properties (mass, volume, density....) so the part (assembly) must be referenced in the drawing (contained in the MEP). 

2 Likes

Here is the functional result for me:

For one piece:

MASS (Kgs): SW-mass@@$PRPVIEW:{SW-Configuration Name}@$PRPVIEW:{SW-File Name}. SLDPRT

For an assembly:

MASS (Kgs): SW-mass@@$PRPVIEW:{SW-Configuration Name}@$PRPVIEW:{SW-File Name}. SLDASM

Thank you for your help!

1 Like