C++
Acad::ErrorStatus dxfIn( IAcReadStream* pInputStream, const ACHAR* logFilename = nullptr );
Description
This function reads a DXF file from the stream pointed to by pInputStream to the database. This function does not close or delete the stream when it is done.
The default for logFilename is no output file. When there is no output file, warning/error messages will be output character-by-character through the displayChar() method in AcDbHostApplicationServices.
Parameters
Parameters | Description |
---|---|
pInputStream | Input pointer to stream from which to read the dxf file |
logFilename | Input log file to record all warning/error messages from reading the DXF file |
Returns
returns Acad::eOk if successful
Warning
This function should be used only on a newly created AcDbDatabase that was created with its constructor's buildDefaultDrawing argument set to Adesk::kFalse. If this method is used on an AcDbDatabase created with buildDefaultDrawing set to Adesk::kTrue or an AcDbDatabase that already has information in it (for any reason including a previous call to this method), then memory leaks or possibly fatal errors will result.