DIAdem Help

Method: Load for UnitCatalog

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

Method: Load for UnitCatalog

Loads the contents of a units catalog from a file with the filename extension *.tuc. DIAdem overwrites existing contents. The UnitCatalog object is available as a global object in scripts and in dialog boxes. If you want to prepare further catalog units without changing the loaded units catalog, use the OpenExternalCatalog method.

Object.Load(FileName)
ObjectUnitCatalog
Object with this method
FileNameString
Specifies the name and the path of the units catalog file. If you do not specify a path DIAdem tries to load the file from the user folder. If the file is not in the user folder, DIAdem tries to load the file from the library folder for configuration files.

The following example loads the contents of the units catalog file MyUnits.tuc:

VBScriptPython

 

Call UnitCatalog.Load("C:\MyUnits.tuc")