SoPreferencesGetVec2s Method |
Returns the value of the specified environment variable in the Open Inventor environment, interpreted as an SbVec2s.
Namespace: OIV.InventorAssembly: OIV.Inventor.Base (in OIV.Inventor.Base.dll) Version: 9.9.13.0 (9.9.13.0)
Syntaxpublic static SbVec2s GetVec2s(
string name,
SbVec2s defaultValue
)
Public Shared Function GetVec2s (
name As String,
defaultValue As SbVec2s
) As SbVec2s
public:
static SbVec2s GetVec2s(
String^ name,
SbVec2s defaultValue
)
static member GetVec2s :
name : string *
defaultValue : SbVec2s -> SbVec2s
Parameters
- name
- Type: SystemString
- defaultValue
- Type: OIV.InventorSbVec2s
Return Value
Type:
SbVec2s
RemarksThe 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 an 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