AutoCAD DXF Export Automation Options

 

Since the Export Options dialog is not displayed when the program is driven from an automation script, an options string can be specified in the script. The string consists of comma-separated parameters, which specify the behavior of the various export options.

 

Option

Action

Default

Description

FileCompatibility

13 = AutoCAD Release 13 (or earlier)

14 = AutoCAD Release 14 (or later)

18 = AutoCAD 2004 (or later)

14

Specifies which version of the DXF format is to be used for export.

FormatASCII

0 = Binary

1 = Text (ASCII)

1

File format of exported DXF file. The ASCII file format is larger than the DXF binary format, but is compatible with a wider variety of software programs.

MaxBitmapSizeInMB

N

10

For AutoCAD 2004 format, this option specifies the largest size allowed for an individual bitmap in the DXF file, in Megabytes.  Any exported bitmap larger than this size, will have its resolution reduced so it does not exceed the maximum size.

AllColorsSame

0 = No

1 = Yes

0

Convert all colors to the default color.

AllStylesSame

0 = No

1 = Yes

0

Convert all line styles to the default line style.

AllWidthsSame

0 = No

1 = Yes

0

Convert all line widths to the default line width.

AllTextToAreas

0 = No

1 = Yes

0

Convert all text entities in the exported document to solid areas

FillSolidAreas

0 = No

1 = Yes

0

Fill solid area interiors.

UseSpatialInfo

0 = No

1 = Yes

0

Use ONLY spatial information. Only the basic geometry (lines, areas, text) will be written to the DXF file, and all line styles, colors, fills, and other attributes will be discarded.

ColorMapping

0 = Linear

1 = Weighted LUV

0

Choose the indexed color mapping as either weighted LUV export color mapping, or linear export color mapping.

RenderMarkers

0 = No

1 = Yes

1

Render marker symbols as lines and polygons. When set to 0, marker symbols are exported to the DXF file as points.

 

 

Remarks

Boolean values within options strings are not equivalent to Booleans in Scripter BASIC. Use “1” instead of “True” and “0” instead of “False”.

 

 

See Also

AutoCAD DXF Import Automation Options

AutoCAD DXF Import Options Dialog

AutoCAD DXF Export Options Dialog

AutoCAD DXF File Description