Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbHostAppServices::readFile Method (OdStreamBuf*, bool, bool, const OdPassword&)
Syntax
C++
virtual OdDbDatabasePtr readFile(OdStreamBuf* pStreamBuf, bool allowCPConversion = false, bool partialLoad = false, const OdPassword& password = OdPassword());

Loads the contents of the specified StreamBuf or DWG/DXF file into the database with which this HostAppServices object is associated. 

 

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

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

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