Autodesk AutoCAD DWF Reader/Writer

FME supports reading and writing Autodesk DWF files up to and including version 6.0. Design Web Format (DWF) is a highly compressed file format, suitable for distributing over the Internet. You can export a single drawing or publish multiple drawings and sheet sets into a single DWF file.

DWF files consist of drawing settings and configuration, as well as a series of entities, or graphic elements, organized into layers.

This format documentation assumes familiarity with AutoCAD-compatible systems and the entities (features) that are manipulated within these systems.

Autodesk DWF Product and System Requirements

Format

FME Platform

Operating System

Reader/Writer

FME Form

FME Flow

FME Flow Hosted

Windows 64-bit

Linux

Mac

Reader

Yes

Yes

Yes

Yes

- Linux Intel: Yes

- Linux ARM: No

- macOS Intel: Yes

- macOS ARM: No

Writer

Yes

Yes

Yes

Yes

- Linux Intel: Yes

- Linux ARM: No

- macOS Intel: Yes

- macOS ARM: No

Overview

There are three supported formats used by AutoCAD:

  • DXF (drawing exchange format) files, which are large ASCII files,
  • DWG (drawing) files, which are binary and support the most entity types, and
  • DWF (design web format) files, which are binary files of reduced size and functionality intended for display on limited-bandwidth mediums such as the Internet.

Logically, both DWG and DXF files are identical and, therefore, FME treats both file types in the same manner. DWG/DXF files are read by the AutoCAD DWG/DXF Reader/Writer.

DWF files are handled seamlessly, but internally they undergo a different series of translation processes. These are read separately by the DWF reader and writer. The DWF reader and writer can read and write sheets and models from both two-dimensional (2D) and three-dimensional (3D) DWF files.

Note  This chapter contains information related to the DWF reader/writer. For general AutoCAD DWG/DXF information and AutoCAD feature types supported by FME, please refer to the Autodesk AutoCAD DWG/DXF Reader/Writer.

Reader Overview

The DWF reader extracts entities, one at a time, from the entity section of the drawing file and passes them on to the rest of the FME for processing. Complex entities such as polylines and inserts are exploded and broken into several individual FME features. If the entity has attribution stored as extended entity data, then these attributes are ignored.

When the reader encounters an entity type it does not know how to process, it simply sets the entity type of the feature and returns it. This feature is then logged by the FME correlation subsystem and the reader moves on to the next entity.

Writer Overview

The following capabilities are available on the DWF writer:

  • Password security: Passwords can be created for DWF files written by FME.
  • Multiple file formats: DWF files can be written as either compressed or uncompressed binary files, or as ASCII files.
  • Resolution: DWF file resolution can be determined at translation time in the form of the X Size and Y Size, in pixels.
  • Color Map Optimization: Colors in the color map that are unused can be eliminated from the output file to reduce space.
  • Export Invisible Layers: Invisible Layers can be exported (not supported for writing 3D).
  • Force View Extents: The initial viewport of the output file can be overwritten to include the entire extents of the drawing instead of the default active viewport.
  • Use Inked Area: The inked area of the DWF file can be calculated from the entities in the file to produce a tight bounding rectangle around drawable graphic entities.
  • Skip Layer Info: Additional layer information can be omitted from the output DWF file to reduce space.
  • Skip Named Views: Named viewports can be omitted from the output DWF file in order to save space.
  • Multi-version Support: The writer supports files that are compatible with any current AutoCAD release.

When creating DWF files, the writer first defines the linetypes and layers defined within the FME workspace. 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 writer then outputs each feature it is given to the output file in the appropriate entity type. The writer creates a geometric representation of FME features, but does not create attribute information in the output file.

When AutoCAD data is output, header information may be copied from a supplied template, or prototype, file.

When writing a DWF file, if the file name contains .dwf or .DWF, the output dataset is written in DWF format. If an error exists in the workspace, the translation is halted.