Autodesk AutoCAD DWG/DXF Writer Parameters
Attribute Output
This parameter specifies the default manner in which attribute data will be stored. Note that storing attributes may greatly increase the size of the output AutoCAD file.
Extended Entity Data
Attribute:extended_entity_data
If selected, attempts to store schema attributes on a layer as extended entity data. For more information, seeExtended Entity Data.
Specifies whether the writer should attempt to store schema attributes on a layer as insert attributes for block insert features, or new block features.
如果选中,当它创建插入,令状er attempts to add the schema attributes defined by the layer definition. In this case, any format specific insert attributes in thefme_attrib_infolist attributes are ignored.
If not selected, the writer attempts to writefme_attrib_infolist attributes (added by the AutoCAD reader) as insert attributes. Note that this is only done if theautocad_attributes_followattribute is set. The AutoCAD reader automatically sets this attribute.
Limited (default)
Attribute:external_attributes
指示writer to not store any attribution in the AutoCAD file, with the exception of extended entity data list formatted.
Insert attributes may also be created for insert entities, fromfme_attrib_infolist, if theautocad_attributes_followattribute is set.
File Options
Specify the AutoCAD release that will be compatible with the output file.
Template File
一个模板file is an AutoCAD file that defines layers, line styles, blocks and shape definitions which are referenced during translation. This option allows you to define the template file by entering a template filename or browsing to a file location.
Note:Template files are also known as prototype files.
This parameter can be used to allow the file specified in theDestination Autodesk AutoCAD Fileparameter to be written as the concatenation of the Model Space contents of the file specified by theTemplate Fileparameter with all written data.
By default, it is set toNo, so only header information but no Model Space entities are used from the template file if one is specified. If this parameter is set toYes, then the full header and Model Space entities are used from the template file.
This parameter can be used to allow the file specified in theDestination Autodesk AutoCAD Fileparameter to be written as the concatenation of the Paper Space contents of the file specified by theTemplate Fileparameter with all written data.
By default, it is set toYes, so the Paper Space entities are used from the template file if one is specified. If this parameter is set toNo, then the Paper Space entities are not used from the template file.
Advanced
The application name that is used when writing extended entity data.
When this parameter is set toYes(default), only those attributes defined as part of the layer definition will be stored. See theDEFdirective for more details.
If this parameter is set toNo, most feature attributes (except those that start withautocad
) are stored.
Specifies the folder in which to look for shape files (*.shp) from which information about SHAPE entities will be extracted for writing. For more information, seeShapes.
The names of blocks created by the writer during automatic block creation.
This parameter may be used to specify a prefix for block names that are created by the writer during automatic block generation. Automatic block generation occurs for features written with aggregate and other geometries which are best represented by block entities.
This parameter is only used whenUse the Block Name to Create Blocksparameter is set toNo, and is not used for features that already have anautocad_block_nameattribute specified.
The names of created blocks will take the form:
Note:This parameter is not supported by the RealDWG writer.
Use this parameter to turn on/off internal auditing before the final drawing file is written out.
By default it is set toYes, so auditing will be performed and any errors found will be fixed. It is recommended that you leave the auditing set toYes. If you set it toNo, it is possible that the output file may not be as per the AutoCAD file specification.
How Auditing Fixes Errors:As an example, if there is a layer name with a space or any other invalid characters, then that layer name will be changed to something like$DDT_AUDIT_GENERATED_(3B). If auditing is turned off, then the layer name will not be changed and when it is audited in AutoCAD, it will return errors such as invalid layer names.
This parameter controls whether the writer will optionally store the coordinate system of its features. The coordinate system can be stored inside the output AutoCAD file as an Esri Well Known Text (in an ESRI_PRJ entry in an internal dictionary in the file), according to Esri specifications. It can also be stored externally in a companion Esri.prjfile that shares the output AutoCAD file's base name, but has a.prjextension.
Values:NONE (projection information is not stored anywhere) | EXTERNAL_PRJ | EXTERNAL_AND_INTERNAL | INTERNAL_WKT
AutoCAD data files written this way with projection information will be recognized by FME and the freeArcGIS for AutoCADapplication, which installs on top of the AutoCAD application.
Note:This parameter is not supported by the RealDWG writer.
The names of blocks created by the writer during automatic block creation will use the value of theautocad_block_nameattribute if the attribute is present and this parameter is specified.
If a template file is used during writing, the block name will be used to try to match an existing block definition in the template file. This is similar to the behavior for insert entity writing. This parameter does not affect the use of the block name for insert entity writing.
If the intention is that only insert entities should be used to try to match block names with block definitions, set this parameter toNo.
If not specified, the syntax may be the following, but may also be modified by the usage of theCreated Block Name Prefixparameter:
_ _FME_BLOCK_
This parameter can be used to toggle purging of unused objects or entities before the final drawing file is written out.
Unused objects are those which are not referenced by other objects in the drawing. For example, for a layer to be eligible to be purged, there must be no entities on that layer.
If set to Yes, the AutoCAD Writer will attempt to purge the following object types:
- Blocks
- Layers
- Detail View Styles
- Dimension Styles
- Groups
- Linetypes
- Materials
- MLine Styles
- MLeader Styles
- Registered Applications
- Section View Styles
- Table Styles
- Text Styles
- Visual Styles
This parameter can be used to set the INSUNITS variable of the destination dataset to one of the following units:
UNDEFINED | INCHES | FEET | MILES | MILLIMETERS | CENTIMETERS | METERS | KILOMETERS | MICROINCHES | MILS | YARDS | ANGSTROMS | NANOMETERS | MICRONS | DECIMETERS | DEKAMETERS | HECTOMETERS | GIGAMETERS | ASTRONOMICAL | LIGHTYEARS | PARSECS
When this parameter is not set, the INSUNITS variable is taken from a template file, if specified. The INSUNITS variable specifies the drawing units used in the scaling of inserted entities such as blocks.
This parameter behaves like a declaration of the type of units, but it does not change the scale or coordinates of existing entities, nor does it affect any entities to be written by the AutoCAD writer.
This parameter can be set toYesto create a thumbnail image of the destination drawing model space within the destination drawing file. This image may then be used as a preview by enabled applications, such as Windows Explorer.
This parameter can be used to change how donut geometries on features withautocad_entityattributes not set toautocad_hatchorautocad_mpolygon, are represented as AutoCAD entities.
If this parameter is set toYes, and a donut is planar, then it will be written as a hatch entity. Donuts with three dimensions will only be written as hatches if they have a constant Z value, which can be stored as the hatch elevation.
If a donut is not oriented in the XY plane, then the feature must haveautocad_extrusion_x,autocad_extrusion_y, andautocad_extrusion_zattributes set which indicate the normal vector direction, orthogonal to the plane of the object. If not, the hatch may have Z values dropped, to force it into the XY plane.
If this parameter is set toNo, or a donut is not planar, then that donut will be handled like a multi-area geometry, and will be written as a block.