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

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

Namespace: OIV.Inventor
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public static bool Read(
	SoInput in,
	out SoNode rootNode
)

Parameters

in
Type: OIV.InventorSoInput
rootNode
Type: OIV.Inventor.NodesSoNode

Return Value

Type: Boolean
Remarks

There is an alternate read routine that returns the resulting path. 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