Click or drag to resize
SoInputOpenFile Method (String, Boolean, Boolean)

Opens named file.

Namespace: OIV.Inventor
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.2.0.0 (2024.2.0)
Syntax
public virtual bool OpenFile(
	string fileName,
	bool okIfNotFound,
	bool aSync
)

Parameters

fileName
Type: SystemString
okIfNotFound
Type: SystemBoolean
aSync
Type: SystemBoolean

Return Value

Type: Boolean
Remarks

If okIfNotFound is false (the default), prints an error message if the file could not be found. If aSync is true (false by default) the file is read asynchronously (the reading starts immediately although it isn't fully buffered).

The file name may contain variables in $name format, e.g. "$OIVHOME", which will be replaced by the value returned by OIV.Inventor.SoPreferences for that name.

See Also