値フィールドの内容の変更によるフィート・インチ単位の使用

Tekla Structures
2021
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

役に立ちましたか?
前へ
次へ