Skip to content

ExportOptionsAutoCAD

exportOptionsAutoCAD

Options for exporting a document as an AutoCAD file, used with the Document.exportFile() method. All properties are optional.

When you export a document, a file extension is appended automatically. You should not include any file extension in the file specification.

To override the default AutoCAD export format (DWG), use the ExportOptionsAutoCAD.exportFileFormat property.


ExportOptionsAutoCAD.alterPathsForAppearance

Section titled “ExportOptionsAutoCAD.alterPathsForAppearance”

exportOptionsAutoCAD.alterPathsForAppearance

If true, paths are altered if needed to maintain appearance.

Default: false.

Boolean.


exportOptionsAutoCAD.colors

The colors exported into the AutoCAD file.

AutoCADColors


ExportOptionsAutoCAD.convertTextToOutlines

Section titled “ExportOptionsAutoCAD.convertTextToOutlines”

exportOptionsAutoCAD.convertTextToOutlines

If true, text is converted to vector paths; preserves the visual appearance of type.

Default: false.

Boolean.


exportOptionsAutoCAD.exportFileFormat

The format to which the file is exported.

Default: AutoCADExportFileFormat.DWG.

AutoCADExportFileFormat


exportOptionsAutoCAD.exportOption

Specifies whether to preserve appearance or editability during export.

Default: AutoCADExportOption.MaximizeEditability.

AutoCADExportOption


ExportOptionsAutoCAD.exportSelectedArtOnly

Section titled “ExportOptionsAutoCAD.exportSelectedArtOnly”

exportOptionsAutoCAD.exportSelectedArtOnly

If true, only selected artwork is exported.

Default: false.

Boolean.


exportOptionsAutoCAD.rasterFormat

The format in which raster art is exported.

AutoCADRasterFormat


exportOptionsAutoCAD.scaleLineweights

If true, line weights are scaled by the same scaling factor as the rest of the drawing.

Default: false.

Boolean.


exportOptionsAutoCAD.typename

The class name of the referenced object.

String; read-only.


exportOptionsAutoCAD.unit

The measurement units from which to map.

AutoCADUnit


exportOptionsAutoCAD.unitScaleRatio

The ratio (as a percentage) by which output is scaled.

Range: 0 to 1000

Number (double).


exportOptionsAutoCAD.version

The release of AutoCAD to which the file is exported.

Default: AutoCADCompatibility.AutoCADRelease24.

AutoCADCompatibility