Click or drag to resize
SoDBRead Method (SoInput, SoPath)

Reads a graph from the file specified by the given OIV.Inventor.SoInput, returning the resulting path in path.

Namespace: OIV.Inventor
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public static bool Read(
	SoInput in,
	out SoPath path
)

Parameters

in
Type: OIV.InventorSoInput
path
Type: OIV.InventorSoPath

Return Value

Type: Boolean
Remarks

There is an alternate read routine that returns the resulting root node. The programmer is responsible for determining which routine to use, based on the contents of the input. These routines return false if any error occurred during reading.

If the passed OIV.Inventor.SoInput was used to open a file and the name of the file contains a directory, OIV.Inventor.SoDB automatically adds the directory to the end of the current directory search path in the OIV.Inventor.SoInput. This means that nested files named in OIV.Inventor.Nodes.SoFile nodes may be found relative to that directory. The directory is removed from the search path when reading is complete.

See Also