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

Namespace: OIV.Inventor
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 9.9.36.0 (9.9.36.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

Reads a graph from the file specified by the given SoInput, returning the resulting root node in rootNode. 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 SoInput was used to open a file and the name of the file contains a directory, SoDB automatically adds the directory to the end of the current directory search path in the SoInput. This means that nested files named in SoFile nodes may be found relative to that directory. The directory is removed from the search path when reading is complete.

See Also