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

Tekla Structures
2021
Tekla Structures

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

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

È stato utile?
Precedente
Successivo