Display Mass in Dual Units in SolidWorks

Mission: Have the Mass in two different units

Ingredients  Required: A part,  an equation, a conversion factor, file properties, some notes and a drawing with a view (optional).

1. Open the Part.

2. Right click on the Equation folder in the Feature manger tree and select “Add Equation“.

3. Equation editor will open up along with the Add equation dialog box.

4. Type: “Weightin LBS” =

5. Now expand the add equation dialog box.

6. Click on SW-Mass property once.

7.  “SW-Mass” will get added to the equation and equation will now change to “Weightin LBS” = “SW-Mass”

8. Add the conversion/multiplication factor. In this case, I have taken it as 0.002. The equation is now “Weightin LBS” = “SW-Mass”*0.002

9. Click OK to close the Add equation dialog box.

10. You can see the evaluated value in the Equation editor.

11. Click OK to close the Equation editor.

12. The equation will appear under Equation folder.

13. Open up part summary information (File > Properties)

14. Click on either custom or configuration tab as required.

15. Start a new property. Type Weight in GMS under property name. Set type to Text. For value/Text Expressions, choose Mass from the drop down list.

16. You can see the evaluated value for the property.

17. Create another property. Type Weight in LBS under property name. Set type to Text. For value/Text Expressions, choose Weightin LBS from the drop down list.

18. You can see the evaluated value for the property.

19. Click OK to close the summary information window.

20. Start a Note (Insert > Annotations > Note).

21. Click anywhere on the screen and type Weight in GMS:

22. Now click on “Link to Property” in the note property manager.

23. In the Link to Property window, select current document and select Weight in GMS from the list.

24. Click OK to set the text.

25. In the same note, in the next line type Weight in LBS:, click on “Link to Property” in the note property manager and in the Link to Property window, select current document and select Weight in LBS from the list.

26. Click OK to set the text.

27. Click anywhere on the screen to exit the command. You can now the see the weight displayed in two different units.

28. Similar way you can set to display the weight  in two different units in drawings too.

I leaned a new thing while working on this post for which I would like to thank Wayne Matus. He taught me a method to set decimal places in equation. I had been struggling to control the decimal place in the evaluated value but no option to do that. So I throw up up the question to SW experts and Wayne came down bang on the answer with the simple method stated below.

1. Expand the Equation folder in the Feature manger tree, right click on the equation we just added above (i.e. “Weightin LBS”) and select Edit equation.

2. Edit equation dialog box will open up.

3. Equations use VBA so the Format command can be used with them.  Change the equation to : “WeightinLBS”= Format(“SW-Mass”*0.002, “#.###”) Just specify the nujmber of # after the . In my case, I have set it to 3.

4. Click OK to close the Edit equation dialog box.

5. You can see the updated evaluated value in the Equation editor.

6. Click OK to close the Equation editor.

7. And finally the updated Note in the part.

3 thoughts on “Display Mass in Dual Units in SolidWorks

  1. batteryliving

    Great! Thanks!
    Actually wanted live calculation of surface area of an appartment with complex shape. So I made a solid of the floor space and made it 100mm thick. Assigned a custom material with density 0.01 to that resulting body. Any other solids was assigned a zero density material. The mass of my deisgn is now the same as the floor area and can be displayed using the technique you demonstrated above.

    Reply
  2. Brian

    This is pretty neat and useful. How would you do the same thing for maybe the center of gravity X,Y,Z values using a custom coordinate system. I know how to create a new coordinate system, but I don’t seem to be able to change to default property values for the new coordinate system.

    Reply

I'll be happy to know your views and opinions as this will help me to improve. You can share them as comments below.

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s