Click or drag to resize
SoPreferencesGetBool Method

Returns the value of the specified environment variable in the Open Inventor environment, interpreted as a boolean.

Namespace: OIV.Inventor
Assembly: OIV.Inventor.Base (in OIV.Inventor.Base.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public static bool GetBool(
	string name,
	bool defaultValue
)

Parameters

name
Type: SystemString
defaultValue
Type: SystemBoolean

Return Value

Type: Boolean
Remarks

The search process is the same as for OIV.Inventor.SoPreferences.GetValue(System.String). The environment variable must have one of the following values ( with any capitalization ) to be valid:

  • T, true or 1 : means true.

  • F, false or 0 : means false.

If the environment variable is not defined in the Open Inventor environment, or if its value cannot be interpreted as a boolean, the specified default value will be returned.

See Also