更改值字段内容以使用英制单位

Tekla Structures
2020
Tekla Structures

更改值字段内容以使用英制单位

使用英制单位时需要检查的高级选项:

GetValue("ADVANCED_OPTION.XS_IMPERIAL")==TRUE

多语言文本情况下经过翻译的字符串的调用:

GetValue("TranslatedText("albl_Diameter_")")

单位格式设置:

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

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

在规则中组合上述所有内容:

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

这些内容是否有用?
上一步
下一步