DIAdem Help

Method: CreateImportParameter for Settings <Navigator>

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

Method: CreateImportParameter for Settings <Navigator>

Returns an object with all parameters for importing data in DIAdem.

Note  You can only use the ImportParameter object in the 64-bit version of DIAdem.
Note  You can use the ImportParameter <Navigator> object as a parameter in the following commands and methods: DataFileLoad, DataFileLoadSel, Navigator.LoadData, Navigator.LoadProperty, and StorageImport.
Set oImportParameter = Object.CreateImportParameter([ImportAction])
ObjectSettings <Navigator>
Object with this method
[ImportAction]Variant
Specifies how DIAdem imports data into the Data Portal. You can also use the following script terms:
Script Term Interface Term, Explanation
"Load"
Load
"Register"
Register
"Append"
Append
"LoadImmediately"
Always load bulk data
"LoadOnFirstAccess"
Load bulk data on first access
"LoadOnWriteAccess"
Load bulk data when writing channel data
oImportParameterImportParameter <Navigator>
Returned object

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

VBScriptPython

 

Dim oMyImportParameter
If ApplicationBitness = 64 Then
  Set oMyImportParameter = Navigator.Settings.CreateImportParameter("Append")
  oMyImportParameter.AppendCheckGroupName = eAppendCheckGroupNameAutomatic 
  oMyImportParameter.BulkDataLoadingMode = eBulkDataLoadingOnFirstAccess
  Call DataFileLoad("Example.tdm", "TDM", oMyImportParameter)
Else
  MsgBox "ImportParameter object only supported in 64 bit"
End if

Log in to get a better experience