Table of Contents

Class DxfRasterVariables

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

The RASTERVARIABLES of a DXF file, as AutoCAD's RasterVariables: how the images of the drawing are shown, the entry ACAD_IMAGE_VARS of the named object dictionary, which AutoCAD 2021 writes once a drawing holds an image or IMAGEFRAME is first changed (GetRasterVariables(DxfDatabase)): db.NamedObjectsDictionary.GetAt("ACAD_IMAGE_VARS").

public sealed class DxfRasterVariables : DxfDBObject
Inheritance
DxfRasterVariables
Inherited Members

Remarks

AutoCAD 2021 gives a drawing it opens with images frames shown (70 of 1), pictures shown finely (71 of 1) and no unit (72 of 0). Each value is written as its number.

Properties

ImageFrame

Gets or sets whether the frames of the images are shown (group 70), as AutoCAD's ImageFrame: written as the number of the setting, 0 to 3, as AutoCAD 2021 writes it; ImageFrameOff where the record gives none, ImageFrameInvalid for a number outside 0 to 3.

ImageQuality

Gets or sets how finely the images are shown (group 71), as AutoCAD's ImageQuality: draft (0) or high (1); high where the record gives none, Invalid for another number.

UserScale

Gets or sets the unit images are scaled in where the drawing gives none (group 72), as AutoCAD's UserScale: none (0) where the record gives none, and for a number outside 0 to 20.

Methods

GetRasterVariables(DxfDatabase)

Gets the variables of images of a drawing, as AutoCAD's RasterVariables.GetRasterVariables: its entry ACAD_IMAGE_VARS, made where it has none, as AutoCAD 2021 makes it when IMAGEFRAME is first changed in a drawing with no image yet: frames shown (70 of 1), pictures shown finely (71 of 1), and the unit images are inserted in (72) that of the drawing ($INSUNITS), as AutoCAD numbers it there: 1 for millimetres, 2 centimetres, 3 metres, 4 kilometres, 5 inches, 6 feet, 7 yards, 8 miles, 0 for none or another unit; the class RASTERVARIABLES listed. A metric drawing of millimetres is given 70 1, 71 1, 72 1.

ToString()

Gives the variables as a line for debugging: their type, their handle and their three settings.