You are here: FME Readers and Writers > Autodesk AutoCAD DWG/DXF Reader/Writer > Writer Overview

Writer Overview

The AutoCAD writer provides the following capabilities when writing AutoCAD files.

autocad_attributes value

Description

extended_entity_data

This results in the attribution being written to the extended entity for the feature.

insert_attributes

This results in the writer creating an insert entity for each feature and storing all attributes with the insert entity. The insert entity refers to a block that contains the geometry of the output feature.

external_attributes

This is the default value. Limited attributes are written to the AutoCAD file. This is useful if the attributes are being stored in an external database. Note that list formatted extended entity data as created by the AutoCAD Reader may still be written.

When creating AutoCAD files, the AutoCAD writer first defines the linetypes and layers defined within the FME mapping file. The writer then reads in a template file, if specified, and copies the linetypes, layer definitions, shape file header information, and block information from the template file to the output dataset.

The AutoCAD writer then outputs each feature it is given to the output file in the appropriate entity type.

When writing an AutoCAD file, the format of file output is determined as follows:

The AutoCAD writer uses the above rules to enable the same FME mapping file to be used to create both DXF and DWG output files. Users are able to specify their choice simply by changing the suffix of the output file being produced.