Decimal precision for custom properties in SolidWorks

Controlling the decimal precision for a custom property can be done independantly of document properties. To do this we need to create an equation. Take this example of mass. The first step is to create a custom property for mass.

Decimal1

The document units have been set to 8 decimal places so the custom property also has 8. I then have to create an equation that will round my custom property.

Decimal2

I have created a global variable to show I want the mass with 2 decimal places. The equation uses the existing custom property weight and with the round function rounds to 2 decimal places. ROUND("weight",2)

Decimal3

Finally I have created a second custom property that uses the global variable to display the rounded number.

Thanks,

Jordan Nardick, CSWE
Applications Engineer
Computer Aided Technology, Inc.

  • Share this
Find Your Design Solution in the CATI Store.
Browse Products