The following syntax with " TranslateStringInGlobalOptionArrayDef " represents an improvement:
If the material cannot be found in the [MatMap] block of the configuration file, then the input value is used as default. The old function (without „Def“) ignores the input value.
"aluminium" be the input value. If the function cannot find this value in the [MatMap] block, then the enhanced "Def" function passes "aluminium" to the CAD system. If the value is available in the material table of the CAD, it will use the value. The old function by contrast only returns an empty line.
?context.TranslateStringInGlobalOptionArrayDef("MATMAP","",GetObject("iface. calcnameservice").start(0).Format("<CLASSPROP(cns,CNSPHYPROP,CNSMAT)>").value(),GetObject ("iface.calcnameservice").start(0).Format("<CLASSPROP(cns,CNSPHYPROP,CNSMAT)>").value())
?context.TranslateStringInGlobalOptionArrayDef("MATMAP","",_FORMAT_0("<CLASSPROP (cns,CNSPHYPROP,CNSMAT)>").value(),_FORMAT_0("<CLASSPROP(cns,CNSPHYPROP,CNSMAT)>").value())