DIAdem Help

Method: OpenDataStoreByParameter for Display

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

Method: OpenDataStoreByParameter for Display

Uses the specified parameters to open a data store in the DIAdem NAVIGATOR interface.

bOpenDataStoreByParameter = Object.OpenDataStoreByParameter(PluginName, Param)
ObjectDisplay
Object with this method
PluginNameString
Specifies the name of the DataPlugin that opens the data store.
ParamString
Specifies an XML string with the parameters of the data store. If you open a file-based data store, you only need to enter the filename as a parameter. To generate the XML string for a data store, press the shortcut <Ctrl-Shift-C> in one of the dialog boxes where you configure the data stores. Then open DIAdem SCRIPT and use the shortcut <Ctrl-V> to paste the clipboard contents to your script.
bOpenDataStoreByParameterBoolean
Specifies whether DIAdem opened the data store successfully (TRUE) or not (FALSE).

Note  If DIAdem cannot execute the OpenDataStoreByParameter method successfully, DIAdem fills the VBS Error object and aborts the script. DIAdem writes further information into the logfile and displays a dialog box that contains information on the error.
Note  Use Navigator.Display.CurrDataStore to access the DataStore object.
Note  Use the GetDataStore method to determine the associated data store without interface for a data store, which already has an open interface. Use the ConnectDataStore method to work directly with a data store without a user interface.

The following example opens the MyAtfxData.atfx data store on the basis of the specified parameters:

VBScriptPython

 

Call Navigator.Display.OpenDataStoreByParameter("Atfx", "C:\MyAtfxData.atfx")