Click or drag to resize
SoPreferencesGetFloat Method

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

Namespace: OIV.Inventor
Assembly: OIV.Inventor.Base (in OIV.Inventor.Base.dll) Version: 9.9.13.0 (9.9.13.0)
Syntax
public static float GetFloat(
	string name,
	float defaultValue
)

Parameters

name
Type: SystemString
defaultValue
Type: SystemSingle

Return Value

Type: Single
Remarks

The search process is the same as for getValue. If the environment variable is not defined in the Open Inventor environment, or if its value cannot be interpreted as a float, the specified default value will be returned.

See Also