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
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.