DIAdem Help

Property: ValueMappingFile for PropertyHandling <Navigator>

  • Updated2024-09-12
  • 2 minute(s) read

Property: ValueMappingFile for PropertyHandling <Navigator>

Specifies the name of a Technical Property Value Mapping file (*.TPVM). You are using TPVM files to replace the property values.

Object.ValueMappingFile
ObjectPropertyHandling <Navigator>
Object with this property
Object.ValueMappingFileString with read and write access
(Default: Empty string)
Note  To create and save a TPVM file in DIAdem, select Settings»SystemLink TDM»Data Preparation Procedcure, enable Replace property identifiers, click Edit, define the mapping rules and then click the Export Mapping button.
In the Script API, you create TPVM files using the Navigator.Settings.CreateValueMapper method. Use the Navigator.Settings.SaveValueMapper method to save a TPVM file.

The following example loads the external data of the Example.tdm data set with the settings made in the oMyImportParameter object into the Data Portal:

VBScriptPython

 

Dim oMyImportParameter, oMyPropertyHandling
Set oMyImportParameter = Navigator.Settings.CreateImportParameter("Load")

Set oMyPropertyHandling = oMyImportParameter.PropertyHandling
oMyPropertyHandling.AutoUpdateChnCharacteristics = True
oMyPropertyHandling.InheritanceMode = ePropInheritanceCopyToChannelLevel
oMyPropertyHandling.InheritanceSeparator = ePropInheritanceSeparatorTilde
oMyPropertyHandling.NamingSchema = ePropNamingSchemaPropertyName
oMyPropertyHandling.NameMappingFile = "D:\test.tpim"
oMyPropertyHandling.ValueMappingFile = "D:\test.tpvm"

Call DataFileLoad("Example.tdm", "TDM", oMyImportParameter)