Round or int Values in template editor

Use Round to round values in drawing tables.
Example befor 45.0000012x60.000021x25.300356
After 45.0x60.0x25.3

if (GetValue("MAINPART.NAME")=="ELECTRIC_BOX") then (round(GetValue("MAINPART.LENGTH"), 0.1) +"x"+  round( GetValue("HEIGHT"), 0.1) +"x"+ round(GetValue("MAINPART.WIDTH"), 0.1)) 
else
GetValue("MAINPART.PROFILE")
endif



also you can use Int 
Example befor 45.0000012x60.000021x25.300356
After 45x60x25

Comentários

Mensagens populares