Skip to content

OpenOptionsAutoCAD

openOptionsAutoCAD

Options for opening an AutoCAD drawing, used with the Application.open() method.


openOptionsAutoCAD.centerArtwork

If true, the artwork is centered on the artboard.

Default: true.

Boolean.


openOptionsAutoCAD.globalScaleOption

How to scale the drawing on import.

Default: AutoCADGlobalScaleOption.FitArtboard.

AutoCADGlobalScaleOption


openOptionsAutoCAD.globalScalePercent

The value when globalScaleOption is AutoCADGlobalScaleOption.ScaleByValue, expressed as a percentage.

Range: 0.0 to 100.0. Default is 100.0.

Number (double).


openOptionsAutoCAD.mergeLayers

If true, the layers of the artwork are merged.

Default: false.

Boolean.


openOptionsAutoCAD.parent

The object’s container.

Object; read-only.


openOptionsAutoCAD.scaleLineweights

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

Default: false.

Boolean.


openOptionsAutoCAD.selectedLayoutName

The name of the layout in the drawing to import.

String.


openOptionsAutoCAD.typename

The class name of the object.

String; read-only.


openOptionsAutoCAD.unit

The unit to map to.

Default: AutoCADUnit.Millimeters.

AutoCADUnit


openOptionsAutoCAD.unitScaleRatio

The ratio by which to scale while mapping units.

Default: 1.0.

Number (double).