Click or drag to resize
SoInputAddEnvDirectoriesFirst Method (String, String)

The OIV.Inventor.SoInput class maintains a global list of directories that is searched to find files when opening them.

Namespace: OIV.Inventor
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public static void AddEnvDirectoriesFirst(
	string envVarName,
	string dirSep
)

Parameters

envVarName
Type: SystemString

The name of the environment variable.

dirSep
Type: SystemString

A string containing zero or more directory separator characters.

Remarks

Directories are searched in order. This routine adds directories named in the value of the given environment variable to the beginning of the list.

The default value of dirSep is ":;", in other words either a colon or an a semicolon character will be interpreted as separating directory paths. Directory paths in an environment variable are normally separated by semicolon characters on Microsoft Windows platforms and by colon (or whitespace) on UNIX/Linux systems.

NOTE: On Microsoft Windows systems the default dirSep value causes a problem. For example, the string "C:/myDir" will be interpreted as two different directories "C/" and "/myDir".. To avoid this problem explicitly set dirSep to ";" (semicolon).

See Also