Issue:

As shown in the following figure, for the part weight in the BOM, we need to set the number of significant digits. Values larger than 1000 should display only the integer portion, while values smaller than 1000 should display four digits with variable decimal precision based on the value.

Solution:

  1. Draw the BOM table body, add a property value such as Input mass as shown in the figure, and set the Invisible attribute to Yes.

  2. Click the menu Mechanical → Configuration(X) → BOM Body Definition (ZWMBOMBODYDEFINE command), and follow the prompts to create a new detail table body.
    Make sure to set the Inner Name of MASS to None and Allow Edit to No
    Set the Inner Name of INPUT_MASS to COMPWT

  3. Click the menu Mechanical → Configuration(X)  →  Style Configuration (ZWMSTYLEMANAGER command) to open the Style Configuration dialog box.
  4. Locate the used standard of BOM, select the custom table body file above for BOM Body, and then enter Edit in Property Settings.

  5. In the Mass property, fill in the Expression with a=COMPWT;if a>=1000 ;b=0;else;if a>=100 ;b=1;else;if a>=10 ;b=2;else;b=3;endif;endif;endif;R2S(a,b); and then click OK.

  6. Right-click the used Bom and select Load, then right-click on Standard and select Save to save the modified settings and click OK. The changes will take effect when creating a new drawing.



★How to set the number of significant digits for the values in BOM table in ZWCAD MFGhttps://confluence.zwcad.com/pages/viewpage.action?pageId=174179144