Salta al contenuto principale

Modificare il contenuto del campo valore per l'utilizzo di unità imperiali

Tekla Structures 2021
2021
Tekla Structures

Opzione avanzata per verificare se sono utilizzate le unità imperiali:

GetValue("ADVANCED_OPTION.XS_IMPERIAL")==TRUE

Richiamo stringa tradotto per testo multilingue:

GetValue("TranslatedText("albl_Diameter_")")

Formattazione delle unità:

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

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

Combinare tutti i valori precedenti in una regola:

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

Invia

Table of Contents