Click or drag to resize
SoPreferencesGetInt Method

Returns the value of the specified environment variable in the Open Inventor environment, interpreted as an int.

Namespace: OIV.Inventor
Assembly: OIV.Inventor.Base (in OIV.Inventor.Base.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax
public static int GetInt(
	string name,
	int defaultValue
)

Parameters

name
Type: SystemString
defaultValue
Type: SystemInt32

Return Value

Type: Int32
Remarks

The search process is the same as for OIV.Inventor.SoPreferences.GetValue(System.String). If the environment variable is not defined in the Open Inventor environment, or if its value cannot be interpreted as an int, the specified default value will be returned.

See Also