Skip to main content

Speos Labs Automation 2024 R2

Eulumdat Viewer

Last update: 17.07.2025

Automation in Eulumdat Viewer allows you to access to the data inside Eulumdat files.

The installation directory includes:

  • The TLB file that describes the Automation interface of the Eulumdat Viewer,
  • Some HTML example files which have VB script Automation instructions.

All examples are given using VB Script language but any other language compatible with Automation can be used.

How to call the Eulumdat Viewer

Before any call to the Human Eulumdat Viewer methods you should use the following instruction:

Set Viewer = CreateObject("EulumdatViewer.Application")

This instruction automatically runs the Eulumdat Viewer (creates an instance of the application). The other uses of the Eulumdat Viewer should refer to the variable Viewer which has been initialized with this instance.

You could notice that there is no reference to the path where the Eulumdat Viewer is on the disk. As it is an Automation application it has been registered in the Windows registry and Windows understand which application you want to instantiate with Eulumdat.Application.

How to call a method

To call a method, write Viewer followed by a . then by the name of the method and parameters between " and ", each separated by ,. For example for opening an Eulumdat file, write the following instructions:

Dim MyVar MyVar = Viewer.OpenFile("MyEulumdat.Eulumdat")

The OpenFile method takes a string as parameter. The variable MyVar olds the result of the method (success or failure in this case).

All the available methods match something existing in the graphic user interface of the Eulumdat Viewer.

All the available methods will be described below using the following syntax:

[number] return_type Method_Name(parameter 1, parameter 2,...);

with:

  • [number]: ordinal number of the method (not to be used in most cases).
  • return_type: type of the return value (BOOL for Boolean value, short for integer value, double for floating point value, BSTR for string...).
  • Method_Name: name of the method.
  • Parameter n: A keyword for the type of the parameter followed by the parameter name.

Connect with Ansys