Share

readDwgFile Method

Overload List

Method Description
AcDbDatabase::readDwgFile (AcDwgFileHandle *, bool, wchar_t*) Reads the drawing file specified by pDwgFile into the database object executing this function.This function uses the "lazy-load" mechanism, which means that pieces of the drawing are read in only as needed. So, the drawing file is left open until the database object is deleted, at which point the database destructor closes the drawing file. It always tries to open files with read access. It fails if read access is not available.The bAllowCPConversion argument controls the behavior when the user tries to read a dwg file where the NLS files are not available to convert from the codepage... more
AcDbDatabase::readDwgFile (ACHAR*, OpenMode, bool, wchar_t*) Reads the drawing file specified by fileName into the database object executing this function. fileName must include the extension of the file (which does not have to be .dwg) if the file to open has one, even if the extension is .dwg.This function uses the "lazy-load" mechanism, which means that pieces of the drawing are read in only as needed. So, the drawing file is left open until the database object is deleted, at which point the database destructor closes the drawing file. This function always tries to open files with read access. It fails if read... more

Was this information helpful?