Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbDatabase::readFile Method (OdStreamBuf*, bool, OdDbAuditInfo *, const OdPassword&, bool)
Syntax
C++
void readFile(OdStreamBuf* pStreamBuf, bool partialLoad = false, OdDbAuditInfo * pAuditInfo = 0, const OdPassword& password = OdPassword(), bool allowCPConversion = false);

Reads the contents of the specified StreamBuf object or file into this database object. 

 

Parameters
Description
pStreamBuf
[in] Pointer to the StreamBuf object from which the data is to be read.
partialLoad
[in] Controls the partial loading of .dwg files.
pAuditInfo
[in] Pointer to an OdDbAuditInfo object.
password
[in] Password for file.
allowCPConversion
[in] If and only if true, allows code page conversion.

Using this function in .tx code is not recommended. In .tx modules use OdDbHostAppServices::readFile() or OdDbHostAppServices::recoverFile() instead. This provides more control for host applications which can override these virtual methods. 

The specified OdDbAuditInfo object controls the audit and receives the audit status. 

If pAuditInfo is non-zero, a recover will be performed instead of a load.

Copyright © 2002-2022. Open Design Alliance All rights reserved.