Change value field content to use imperial units

Tekla Structures
2019
Tekla Structures

Change value field content to use imperial units

Advanced option to check if imperial units are in use:

GetValue("ADVANCED_OPTION.XS_IMPERIAL")==TRUE

Translated string call for multi lingual text:

GetValue("TranslatedText("albl_Diameter_")")

Formatting of units:

format(GetValue("DIAMETER"),"Length","inch-frac", 1/16)

format(GetValue("DIAMETER"),"Length","mm", 1)

Combine all above in a rule:

if GetValue("ADVANCED_OPTION.XS_IMPERIAL")==TRUE then

GetValue("TranslatedText("albl_Diameter_")")+ format(GetValue("DIAMETER"),"Length","inch-frac", 1/16) + " Inches"

else

GetValue("TranslatedText("albl_Diameter_")")+ format(GetValue("DIAMETER"),"Length","mm", 1)+" mm"

endif

Was this helpful?
Previous
Next