Reader Directives
This section describes the directives that are recognized by the AutoCAD DWF reader. Each directive is prefixed by the current <ReaderKeyword>_ when placed in a mapping file.
DATASET
Required/Optional: Required
The dataset into which feature data is to be read.
Workbench Parameter: Source Autodesk AutoCAD DWF File(s)
PASSWORD
Required/Optional: Optional
This statement specifies the password to open the DWF file for reading if it is password protected. The statement is of the following form:
<WriterKeyword>_PASSWORD <autocad dwf password>
The statement below instructs the AutoCAD reader try to open the given dataset with the password “mypass”:
DWF_PASSWORD mypass
Value: <valid password>
Default value: no password
Workbench Parameter: Password
PAPER_WIDTH, PAPER_HEIGHT
Required/Optional: Optional
These statements specify the maxima of the width and height in millimeters for the sheets read from the input DWF file.. The statements are of the following form:
<WriterKeyword>_PAPER_WIDTH <width in mm>
<WriterKeyword>_PAPER_HEIGHT <height in mm>
The statements below instruct the AutoCAD reader limit the extents of the sheets read from the input DWF file to 297mm by 210 mm:
DWF_PAPER_WIDTH 297
DWF_PAPER_HEIGHT 210
Paper_Width Value: <Valid positive numeric>
Paper_Width Default Value: 297
Paper_Height Value: <Valid positive numeric>
Paper_Height Default Value: 210
Workbench Parameter: Width (mm) and Height (mm)
SEARCH_ENVELOPE
Using the minimum and maximum x and y parameters, define a bounding box that will be used to filter the input features. Only features that interact with the bounding box are returned.
If all four coordinates of the search envelope are specified as 0, the search envelope will be disabled.
Mapping File Syntax
<ReaderKeyword>_SEARCH_ENVELOPE <minX> <minY> <maxX> <maxY>
Note: If all four coordinates of the search envelope are specified as zero, the search envelope will be disabled.
Required/Optional
Optional
Workbench Parameter
Minimum X, Minimum Y, Maximum X, Maximum Y
SEARCH_ENVELOPE_COORDINATE_SYSTEM
This directive specifies the coordinate system of the search envelope if it is different than the coordinate system of the data.
The COORDINATE_SYSTEM
directive, which specifies the coordinate system associated with the data to be read, must always be set if the SEARCH_ENVELOPE_COORDINATE_SYSTEM
directive is set.
If this directive is set, the minimum and maximum points of the search envelope are reprojected from the SEARCH_ENVELOPE_COORDINATE_SYSTEM
to the reader COORDINATE_SYSTEM
prior to applying the envelope.
Required/Optional
Optional
Mapping File Syntax
<ReaderKeyword>_SEARCH_ENVELOPE_COORDINATE_SYSTEM <coordinate system>
Workbench Parameter
Search Envelope Coordinate System
CLIP_TO_ENVELOPE
This directive specifies whether or not FME should clip features to the envelope specified in the SEARCH_ENVELOPE
directive.
Values
YES | NO (default)
Mapping File Syntax
<ReaderKeyword>_CLIP_TO_ENVELOPE [yes | no]
Workbench Parameter
Clip To Envelope
EXPOSED_ATTRS
This directive allows the selection of format attributes to be explicitly added to the reader feature type.
This is similar to exposing format attributes on a reader feature type once it has been generated; however, it is even more powerful because it enables schema-driven applications other than Workbench to access and leverage these attributes as if they were explicitly on the schema as user attributes.
The result of picking a list of attributes is a comma-separated list of attribute names and types that will be added to the schema features. Currently all reader feature types will receive the same set of additional schema attributes for a given instance of the reader.
Required/Optional
Optional
Mapping File Syntax
Not applicable.
While it is possible for FME Objects applications to invoke this directive, the required format is not documented.
This directive is intended for use in our GUI applications (for example, Workbench) only.
Workbench Parameter
Additional Attributes to Expose
RESOLVE_BLOCKS
Specifies whether the reader will resolve (or explode) the block entities when processing inserts, or if it should just treat inserts as a point feature. This is generally set to No when performing AutoCAD-to-AutoCAD translations.
When the reader resolves blocks, it outputs a feature for each of the AutoCAD entities that are part of the block definition. The original insert is not output. This results in the full graphical representation of the block transferred through FME. The exact insertion point of the block is lost unless the STORE_INSERT_POINT
directive is also used.
Each block member feature is given the attribute autocad_block_number
which is set to the same value for each block so that the features comprising each block may be combined in subsequent processing. Arbitrarily deep block nesting is permitted, however, the autocad_block_number
attribute is only updated for each block at the outermost level.
If the exact insertion point of the block is desired, then block resolution should be turned off and the insert entities for each block should be translated into point features in the output system. Alternatively, the STORE_INSERT_POINT
directive may be specified to keep the insert point on the attributes of block member features.
Required/Optional
Optional
Values
YES (default) | NO
Workbench Parameter
Expand Blocks into Entities
PRESERVE_INSERTS
If the value for RESOLVE_BLOCKS is yes, and this directive is also yes, then block insert points are output as point features.
Required/Optional
Optional
Values
YES | NO (default)
Workbench Parameter
Preserve Insert Point