autodesk autocad dwf读写器

AutoCAD的®dwf读写器允许fme读写由autodesk使用的文件®AutoCAD和兼容系统。AutoCAD图形文件由图形设置和配置组成,as well as a series of entities,或图形元素,分层组织。

FME为许多AutoCAD实体类型和选项提供了广泛的支持,并为读取和写入版本截至2010年(含2010年)的AutoCAD DWG和DXF文件提供了广泛的支持。FME还支持读取和写入6.0及以下版本的AutoCAD dwf文件。When AutoCAD data is output,可以从提供的模板复制标题信息,或原型,文件。

本章假设您熟悉与AutoCAD兼容的系统以及在这些系统中操作的实体(功能)。

注:在本章中,the AutoCAD file is referred to as a drawing file rather than a DWF file.

概述

AutoCAD支持三种格式:

  • DXF(图形交换格式)文件,which are large ASCII files,
  • dwg(图纸)文件,which are binary and support the most entity types,和
  • dwf(图形Web格式)文件,它是用于在有限带宽介质(如Internet)上显示的减小大小和功能的二进制文件。

逻辑上,dwg和dxf文件都是相同的,因此,FME treats both file types in the same manner.dwg/dxf文件由AutoCAD DWG/DXF读写器.

dwf文件是无缝处理的,但在内部它们会经历一系列不同的转换过程。这些内容由AutoCAD dwf读卡器和编写器分别读取。当前,dwf读写器可以从二维(2d)dwf文件中读取和写入图纸和模型。

本章包含与autocad dwf读写器相关的信息。For general AutoCAD DWG/DXF information and AutoCAD feature types supported by FME,请参考autodesk autocad dwg/dxf读写器.

读者概览

autocad dwf reader提取实体,one at a time,从图形文件的实体部分,将其传递给FME的其余部分进行处理。Complex entities such as polylines and inserts are exploded and broken into several individual FME features.如果实体的属性存储为扩展实体数据,then these attributes are ignored.

当AutoCAD Reader遇到不知道如何处理的实体类型时,它只设置功能的实体类型并返回它。This feature is then logged by the FME correlation subsystem and the reader moves on to the next entity.

作者概览

在编写AutoCAD文件时,AutoCAD编写器提供以下功能。

  • 密码安全:可以为由FME编写的dwf文件创建密码。
  • 多种文件格式:可以将dwf文件写为压缩或未压缩的二进制文件,或作为ASCII文件。
  • 决议:可以在转换时以x大小和y大小的writer关键字的形式确定dwf文件的分辨率。这些是以像素为单位指定的。
  • 颜色映射优化:颜色映射中未使用的颜色可以从输出文件中消除,以减少空间。
  • Export Invisible Layers:如果需要,可以选择导出不可见层。(不支持写入3D)
  • 强制视图范围:输出文件的初始视区可以被覆盖,以包括图形的整个范围,而不是默认的活动视区。
  • 使用墨水区域:可以从文件中的实体计算dwf文件的墨迹区域,以在可绘制图形实体周围生成紧密的边界矩形。
  • 跳过层信息:Additional layer information can be omitted from the output DWF file to reduce space.
  • Skip Named Views:为了节省空间,可以从输出的dwf文件中省略命名的视区。
  • 多版本支持:autocad dwf writer支持与任何当前的autocad版本兼容的文件。

创建AutoCAD dwf文件时,AutoCAD编写器首先定义在FME映射文件中定义的线型和图层。然后,编写器读取模板文件,如果指定,并复制线型,层定义,形状文件头信息,and block information from the template file to the output dataset.

然后,autocad dwf编写器将其指定给相应实体类型的输出文件的每个特征输出。The AutoCAD DWF writer creates a geometric representation of FME features,但不会在输出文件中创建属性信息。

在编写AutoCAD dwf文件时,the format of file output is determined as follows:

  • 如果文件名包含 DWF或DWF然后输出数据集以dwf格式写入。
  • 否则,如果映射文件中存在错误,翻译停止。