Method: Load for UnitCatalog
- Updated2024-09-12
- 1 minute(s) read
Units Catalog > Methods > Method: Load for UnitCatalog
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)
| Object | UnitCatalog Object with this method |
| FileName | String 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:
| VBScript | Python |
Call UnitCatalog.Load("C:\MyUnits.tuc")
See Also
Procedures
Adding an Unknown Unit Symbol to the Units Catalog | Converting Channel Units in DIAdem ANALYSIS | Converting Channel Units with a Script | Converting Channels According to a Unit Set | Creating a New Unit Set | Creating a Physical Quantity in the Units Catalog | Extending the Units Catalog with a Script | Replacing and Converting Channel Units in the Input Help