powered by CADENAS

Manual

Manual

2.2.8.6. Block [ClassMapping]

In this block is defined where the material information is taken from. First choice is the "MAT_NAME" column in the characteristic attribute table (used with ERP integration). Second choice is the "virtual" column "CNSMAT" (without ERP integration). Also see Abschnitt 2.2.5, „Materialmapping“.

Unit Base for:

  • MASS = kg

  • DENSITY = kg/dm^3 (WARNING: <v9.07 it was g/dm^3, see Issue #35765)

  • Volume = dm^3

Sample for unit conversion:

The first group form 1 to 7 creates the mapping for the material.

Mapping1(not hasClassProp(cns,CNSPHYPROP,CNSMAT))=cns,CNSPHYPROP,CNSMAT,MAT_NAME

Mapping2(nothasClassProp(cns,CNSPHYPROP,CNSMAT))=cns,CNSPHYPROP,CNSMAT,CNSMAT

Mapping3(not hasClassProp(cns,CNSPHYPROP,CNSDENSITY))=cns,CNSPHYPROP,CNSDENSITY,CNSDENSITY,
 kg/dm^3

Mapping4(not hasClassProp(cns,CNSPHYPROP,CNSMASSEXACT))=cns,CNSPHYPROP,CNSMASSEXACT,
CNSMASSEXACT,kg

Mapping5(not hasClassProp(cns,CNSPHYPROP,CNSMAT))=cns,CNSPHYPROP,CNSMAT,MATERIAL

Mapping6(not hasClassProp(cns,CNSPHYPROP,CNSDENSITY))=cns,CNSPHYPROP,CNSDENSITY,DENSITY,
 kg/dm^3

Mapping7(not hasClassProp(cns,CNSPHYPROP,CNSVOLUMEEXACT))=cns,CNSPHYPROP,CNSVOLUMEEXACT,
 CNSVOLUMEEXA,dm^3

Mapping8 is disabled by default.

This sample will take the calculated value in case no other is there.

Mapping8=Mapping8=cns,CNSPHYPROP,CNSDENSITY,1000*getObject("custom.Voith").GetDensity
 (FORMAT_0("<ATTR(ZZWSTNR)>").value(),FORMAT_0("<ATTR(ZZWSTKBEZ)>").value(),FORMAT_0
 ("<ATTR(ZZWSTNORM)>").value())