Table of Contents

Method GetRasterVariables

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

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.

public static DxfRasterVariables GetRasterVariables(DxfDatabase database)

Parameters

database DxfDatabase

The drawing.

Returns

DxfRasterVariables

The variables.

Exceptions

ArgumentNullException

Thrown when the drawing is null.

InvalidOperationException

Thrown when the drawing has no named object dictionary, as one of R12.