Share

Database.DxfIn Method

Description

This function reads the DXF file specified into the database object.

The default for fileName is no output file. When there is no output file, warning/error messages will be output character-by-character through the displayChar() method in HostApplicationServices.

Warning

This function should be used only on a newly created Database that was created with its constructor's buildDefaultDrawing argument set to false. If this method is used on an Database created with buildDefaultDrawing set to true or a Database 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.

Visual Basic

Public Function DxfIn(
    fileName As string, 
    logFilename As string
) As void

C#

public void DxfIn(
    string fileName, 
    string logFilename
);

Parameters

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

Links

Database Class, Autodesk.AutoCAD.DatabaseServices Namespace

Was this information helpful?