SoInputOpenFile Method (String, Boolean, Boolean) |
Namespace: OIV.InventorAssembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax public virtual bool OpenFile(
string fileName,
bool okIfNotFound,
bool aSync
)
Public Overridable Function OpenFile (
fileName As String,
okIfNotFound As Boolean,
aSync As Boolean
) As Boolean
public:
virtual bool OpenFile(
String^ fileName,
bool okIfNotFound,
bool aSync
)
abstract OpenFile :
fileName : string *
okIfNotFound : bool *
aSync : bool -> bool
override OpenFile :
fileName : string *
okIfNotFound : bool *
aSync : bool -> bool
Parameters
- fileName
- Type: SystemString
- okIfNotFound
- Type: SystemBoolean
- aSync
- Type: SystemBoolean
Return Value
Type:
BooleanRemarks 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