Click or drag to resize
SoPreferencesGetValue Method

Returns the value of the specified environment variable in the Open Inventor environment.

Namespace: OIV.Inventor
Assembly: OIV.Inventor.Base (in OIV.Inventor.Base.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public static string GetValue(
	string name
)

Parameters

name
Type: SystemString

Return Value

Type: String
Remarks

When the getValue method is called:

  • It searches for the environment variable in memory and returns the associated value if found,

  • If not found, it searches for the environment variable in the system environment.

  • If found in the system environment, the environment variable and its value are stored in memory for faster access the next time it is queried.

The return value is the address of a character string containing the associated value. This string may be empty if the name is defined but does not have an associated value.

The return value is NULL if the name was not found in the Open Inventor environment or the system environment.

See Also