Click or drag to resize
SoPreferencesGetVec2s Method

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

Namespace: OIV.Inventor
Assembly: OIV.Inventor.Base (in OIV.Inventor.Base.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public static SbVec2s GetVec2s(
	string name,
	SbVec2s defaultValue
)

Parameters

name
Type: SystemString
defaultValue
Type: OIV.InventorSbVec2s

Return Value

Type: SbVec2s
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 OIV.Inventor.SbVec2s, the specified default value will be returned. To be correctly interpreted, the environment value must be a series of 2 shorts separated by spaces.

See Also