Share

AcDbDatabase::dxfIn

C++

Acad::ErrorStatus dxfIn(
    const ACHAR* dxfFilename, 
    const ACHAR* logFilename = nullptr
);

Description

This function reads the DXF file specified into the database object and returns Acad::eOk if successful.

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.

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.

Parameters

Parameters Description
dxfFilename Input full path of the DXF file to be read into database
logFilename Log file to record all warning/error messages from reading the DXF file

Links

AcDbDatabase Class

Was this information helpful?