Functions can also be used to refer to external files. This is done via vbs files.
![]() | Note |
---|---|
A special license is required here (PSAPI), unless the file is coded as a .vbb file. (CNS2009*PSAPI*LANG*VBS) |
A simple use case would be, for example, if the CAD file name for DIN 912 is to be formed differently than for the other DIN standards and again differently for all other projects.
SHORTNB =TSCRIPT('nb.ruletable','$CALCED_ROW.','$SHORTNB.')
function ruletable (table,calced_row,orgNB)
normname=table.rows.item(mmrow).resolvevariables("$NB.",0)
result="ISO4762"+"_"+table.rows.item(mmrow).resolvevariables("$NENN.$MATERIAL.",0)
'The variables NENN and MATERIAL are preceded by ISO4762.
pos=Instr(1,standard name, "DIN")
result=tmp+table.rows.item(mmrow).resolvevariables("$NENN.$MATERIAL.",0)
all other DIN standards are formed from NN, NENN and MATERIAL.