Decimal values of the assembly weight on drawing part marks
Question:
I have added ASSEMBLY_WEIGHT as a user-defined attribute element on a part mark. Now it shows the weight with six decimals but I would like to show only two decimals. How can I change the number of decimals?
Answer:
ASSEMBLY_WEIGHT is an old attribute, and it was removed from the contentattributes_global.lst from version 17.0. We recommend not using it.
You need to edit the contentattributes_global.lst file located in ..\TeklaStructures\<version>\nt\TplEd\settings folder.
There is a more general way for handling such attributes:
• For example, assemblies use the ASSEMBLY.WEIGHT attribute.
It is the „PART = ASSEMBLY.WEIGHT“ line in the file.
• For example, cast units (sandwich walls) use the CAST_UNIT.WEIGHT attribute.
It is the „PART = CAST_UNIT.WEIGHT“ line in the file.
Change the decimal value of the WEIGHT attribute in the contentattributes_global.lst file. This will affect the decimals of ASSEMBLY.WEIGHT and CAST_UNIT.WEIGHT attributes and other attributes displaying weight.
After changing the contentattributes_global.lst file, save it, reopen the model, remove the UDA from the part mark, and put it there again. The change will then be applied.