API Reference > OdDg Classes > OdDgHostAppServices Class > OdDgHostAppServices Methods > OdDgHostAppServices::readFile Method
OdDgHostAppServices::readFile Method
Syntax
C++
virtual OdDgDatabasePtr readFile(const OdString& fileName, Oda::FileShareMode shareMode = Oda::kShareDenyWrite, bool partialLoad = false);
Parameters 
Description 
const OdString& fileName 
[in] Name of the file from which the data are to be read.  
Oda::FileShareMode shareMode = Oda::kShareDenyWrite 
[in] Share mode to use when opening the specified file.  
bool partialLoad = false 
[in] Controls the partial loading of DGN files.  
pAuditInfo 
[in] Pointer to an OdDgAuditInfo object.  
password 
[in] Password for file. 

Returns a SmartPointer to the database containing the contents of the file.

Loads the contents of the specified DGN file file into the database with which this HostAppServices object is associated. 

 

Copyright © 2002–2020. Open Design Alliance. All rights reserved.